mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-27 15:33:05 +00:00
refactor: port microblock placement to Java
This commit is contained in:
1 parent
e286de3401
commit
c20b6bf9d9
11 files changed
+426
-193
No files matched your search
@@ -0,0 +1,30 @@
|
||||
package codechicken.microblock;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import codechicken.lib.vec.BlockCoord;
|
||||
|
||||
public abstract class ExecutablePlacement {
|
||||
|
||||
private final BlockCoord pos;
|
||||
private final Microblock part;
|
||||
|
||||
public ExecutablePlacement(BlockCoord pos, Microblock part) {
|
||||
this.pos = pos;
|
||||
this.part = part;
|
||||
}
|
||||
|
||||
public BlockCoord pos() {
|
||||
return pos;
|
||||
}
|
||||
|
||||
public Microblock part() {
|
||||
return part;
|
||||
}
|
||||
|
||||
public abstract void place(World world, EntityPlayer player, ItemStack item);
|
||||
|
||||
public abstract void consume(World world, EntityPlayer player, ItemStack item);
|
||||
}
|
||||
Reference in new issue
Block a user