public abstract class AbstractFurnaceScreenHandler extends AbstractRecipeScreenHandler<Inventory>
Modifier and Type | Field and Description |
---|---|
private RecipeBookCategory |
category |
private Inventory |
inventory |
private PropertyDelegate |
propertyDelegate |
private RecipeType<? extends AbstractCookingRecipe> |
recipeType |
protected World |
world |
slots, syncId
Modifier | Constructor and Description |
---|---|
protected |
AbstractFurnaceScreenHandler(ScreenHandlerType<?> type,
RecipeType<? extends AbstractCookingRecipe> recipeType,
RecipeBookCategory recipeBookCategory,
int int2,
PlayerInventory playerInventory) |
protected |
AbstractFurnaceScreenHandler(ScreenHandlerType<?> type,
RecipeType<? extends AbstractCookingRecipe> recipeType,
RecipeBookCategory recipeBookCategory,
int int2,
PlayerInventory playerInventory,
Inventory inventory,
PropertyDelegate propertyDelegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
canUse(PlayerEntity player) |
void |
clearCraftingSlots() |
void |
fillInputSlots(boolean craftAll,
Recipe<?> recipe,
ServerPlayerEntity player) |
RecipeBookCategory |
getCategory() |
int |
getCookProgress() |
int |
getCraftingHeight() |
int |
getCraftingResultSlotIndex() |
int |
getCraftingSlotCount() |
int |
getCraftingWidth() |
int |
getFuelProgress() |
boolean |
isBurning() |
protected boolean |
isFuel(ItemStack itemStack) |
protected boolean |
isSmeltable(ItemStack itemStack) |
boolean |
matches(Recipe<? super Inventory> recipe) |
void |
populateRecipeFinder(RecipeFinder finder) |
ItemStack |
transferSlot(PlayerEntity player,
int index) |
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canStacksCombine, canUse, checkDataCount, checkSize, close, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
private final Inventory inventory
private final PropertyDelegate propertyDelegate
protected final World world
private final RecipeType<? extends AbstractCookingRecipe> recipeType
private final RecipeBookCategory category
protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory)
protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
public void populateRecipeFinder(RecipeFinder finder)
populateRecipeFinder
in class AbstractRecipeScreenHandler<Inventory>
public void clearCraftingSlots()
clearCraftingSlots
in class AbstractRecipeScreenHandler<Inventory>
public void fillInputSlots(boolean craftAll, Recipe<?> recipe, ServerPlayerEntity player)
fillInputSlots
in class AbstractRecipeScreenHandler<Inventory>
public boolean matches(Recipe<? super Inventory> recipe)
matches
in class AbstractRecipeScreenHandler<Inventory>
public int getCraftingResultSlotIndex()
getCraftingResultSlotIndex
in class AbstractRecipeScreenHandler<Inventory>
public int getCraftingWidth()
getCraftingWidth
in class AbstractRecipeScreenHandler<Inventory>
public int getCraftingHeight()
getCraftingHeight
in class AbstractRecipeScreenHandler<Inventory>
@Environment(value=CLIENT) public int getCraftingSlotCount()
getCraftingSlotCount
in class AbstractRecipeScreenHandler<Inventory>
public boolean canUse(PlayerEntity player)
canUse
in class ScreenHandler
public ItemStack transferSlot(PlayerEntity player, int index)
transferSlot
in class ScreenHandler
protected boolean isSmeltable(ItemStack itemStack)
protected boolean isFuel(ItemStack itemStack)
@Environment(value=CLIENT) public int getCookProgress()
@Environment(value=CLIENT) public int getFuelProgress()
@Environment(value=CLIENT) public boolean isBurning()
@Environment(value=CLIENT) public RecipeBookCategory getCategory()
getCategory
in class AbstractRecipeScreenHandler<Inventory>