[Feature] partial Integration with JEI

This commit is contained in:
Frank 2022-07-26 16:21:47 +02:00
parent 0c3a152caf
commit d734b8b140
7 changed files with 439 additions and 2 deletions

View file

@ -275,7 +275,7 @@ public class EndStoneSmelterBlockEntity extends BaseContainerBlockEntity impleme
}
boolean accepted = blockEntity.canAcceptRecipeOutput(recipe);
if (!burning && accepted) {
blockEntity.burnTime = blockEntity.getFuelTime(fuel);
blockEntity.burnTime = EndStoneSmelterBlockEntity.getFuelTime(fuel);
blockEntity.fuelTime = blockEntity.burnTime;
burning = blockEntity.isBurning();
if (burning) {
@ -419,7 +419,7 @@ public class EndStoneSmelterBlockEntity extends BaseContainerBlockEntity impleme
return true;
}
protected int getFuelTime(ItemStack fuel) {
public static int getFuelTime(ItemStack fuel) {
if (fuel.isEmpty()) {
return 0;
}