use of com.wuest.prefab.structures.items.ItemBulldozer in project MC-Prefab by Brian-Wuest.
the class ModEventHandler method AnvilUpdate.
@SubscribeEvent
public static void AnvilUpdate(AnvilUpdateEvent event) {
ItemStack rightItem = event.getRight();
ItemStack leftItem = event.getLeft();
Item tripleCompressedStone = ModRegistry.TripleCompressedStoneItem.get();
ItemBulldozer bulldozer = ModRegistry.Bulldozer.get();
if (rightItem.getItem() == tripleCompressedStone || leftItem.getItem() == tripleCompressedStone) {
if (rightItem.getItem() == bulldozer || leftItem.getItem() == bulldozer) {
event.setCost(4);
ItemStack outputStack = new ItemStack(bulldozer);
bulldozer.setPoweredValue(outputStack, true);
outputStack.setDamageValue(0);
event.setOutput(outputStack);
}
}
}
Aggregations