tcr/java/src/game/item/ItemPressurePlate.java
2025-03-12 18:13:11 +01:00

22 lines
660 B
Java
Executable file

package game.item;
import game.block.Block;
import game.block.BlockBasePressurePlate;
import game.renderer.blockmodel.ModelBlock;
public class ItemPressurePlate extends ItemBlock {
public ItemPressurePlate(Block block) {
super(block);
}
public ModelBlock getModel(String name, int meta) {
return new ModelBlock(new ModelBlock(((BlockBasePressurePlate)this.block).getTexture())
.add(1, 6, 1, 15, 10, 15)
.d().uv(1, 1, 15, 15).noCull()
.u().uv(1, 1, 15, 15).noCull()
.n().uv(1, 6, 15, 10).noCull()
.s().uv(1, 6, 15, 10).noCull()
.w().uv(1, 6, 15, 10).noCull()
.e().uv(1, 6, 15, 10).noCull(), this.getTransform());
}
}