nosingleplayer 1.1.1: fond custom via blit + log debug widgets
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
package net.paladrill.paladrillmod.procedure;
|
||||
|
||||
import net.paladrill.paladrillmod.ElementsPaladrillmodMod;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@ElementsPaladrillmodMod.ModElement.Tag
|
||||
public class ProcedureEndiumDynamiteHit extends ElementsPaladrillmodMod.ModElement {
|
||||
public ProcedureEndiumDynamiteHit(ElementsPaladrillmodMod instance) {
|
||||
super(instance, 235);
|
||||
}
|
||||
|
||||
public static void executeProcedure(Map<String, Object> dependencies) {
|
||||
if (dependencies.get("x") == null) {
|
||||
System.err.println("Failed to load dependency x for procedure EndiumDynamiteHit!");
|
||||
return;
|
||||
}
|
||||
if (dependencies.get("y") == null) {
|
||||
System.err.println("Failed to load dependency y for procedure EndiumDynamiteHit!");
|
||||
return;
|
||||
}
|
||||
if (dependencies.get("z") == null) {
|
||||
System.err.println("Failed to load dependency z for procedure EndiumDynamiteHit!");
|
||||
return;
|
||||
}
|
||||
if (dependencies.get("world") == null) {
|
||||
System.err.println("Failed to load dependency world for procedure EndiumDynamiteHit!");
|
||||
return;
|
||||
}
|
||||
int x = (int) dependencies.get("x");
|
||||
int y = (int) dependencies.get("y");
|
||||
int z = (int) dependencies.get("z");
|
||||
World world = (World) dependencies.get("world");
|
||||
if (!world.isRemote) {
|
||||
world.createExplosion(null, (int) x, (int) y, (int) z, (float) 5, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user