net.minecraft.block.entity

public abstract class AbstractFurnaceBlockEntity

extends LockableContainerBlockEntity implements SidedInventory, RecipeInputProvider, RecipeUnlocker

All mapped superinterfaces:

DebugTrackable, EntryConvertible, Inventory, Clearable, StackReferenceGetter, NamedScreenHandlerFactory, ScreenHandlerFactory, Nameable, SidedInventory, RecipeInputProvider, RecipeUnlocker

net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity
net.minecraft.class_2609
net.minecraft.block.entity.AbstractFurnaceBlockEntity

Field summary

Modifier and TypeField
protected static final int
SLOT_INPUT
field_31286
INPUT_SLOT_INDEX
protected static final int
SLOT_FUEL
field_31287
FUEL_SLOT_INDEX
protected static final int
SLOT_RESULT
field_31288
OUTPUT_SLOT_INDEX
public static final int
DATA_LIT_TIME
field_31289
BURN_TIME_PROPERTY_INDEX
private static final int[]
SLOTS_FOR_UP
field_11987
TOP_SLOTS
private static final int[]
SLOTS_FOR_DOWN
field_11982
BOTTOM_SLOTS
private static final int[]
SLOTS_FOR_SIDES
field_11983
SIDE_SLOTS
public static final int
DATA_LIT_DURATION
field_31290
FUEL_TIME_PROPERTY_INDEX
public static final int
DATA_COOKING_PROGRESS
field_31291
COOK_TIME_PROPERTY_INDEX
public static final int
DATA_COOKING_TOTAL_TIME
field_31292
COOK_TIME_TOTAL_PROPERTY_INDEX
public static final int
NUM_DATA_VALUES
field_31293
PROPERTY_COUNT
public static final int
BURN_TIME_STANDARD
field_31294
DEFAULT_COOK_TIME
public static final int
BURN_COOL_SPEED
field_31295
field_31295
private static final com.mojang.serialization.Codec<Map<RegistryKey<Recipe<?>>, Integer>>
RECIPES_USED_CODEC
field_56671
CODEC
private static final short
DEFAULT_COOKING_TIMER
field_57764
DEFAULT_LIT_TIME_REMAINING
private static final short
DEFAULT_COOKING_TOTAL_TIME
field_57765
DEFAULT_LIT_TOTAL_TIME
private static final short
DEFAULT_LIT_TIME_REMAINING
field_57766
DEFAULT_COOKING_TIME_SPENT
private static final short
DEFAULT_LIT_TOTAL_TIME
field_57767
DEFAULT_COOKING_TOTAL_TIME
protected DefaultedList<ItemStack>
items
field_11984
inventory
private int
litTimeRemaining
field_55574
litTimeRemaining
private int
litTotalTime
field_55575
litTotalTime
private int
cookingTimer
field_55576
cookingTimeSpent
private int
cookingTotalTime
field_11988
cookingTotalTime
protected final PropertyDelegate
dataAccess
field_17374
propertyDelegate
private final it.unimi.dsi.fastutil.objects.Reference2IntOpenHashMap<RegistryKey<Recipe<?>>>
recipesUsed
field_11986
recipesUsed
private final ServerRecipeManager$MatchGetter<SingleStackRecipeInput, ? extends AbstractCookingRecipe>
quickCheck
field_38234
matchGetter

Constructor summary

ModifierConstructor
protected (BlockEntityType<?> blockEntityType, BlockPos pos, BlockState state, RecipeType<? extends AbstractCookingRecipe> recipeType)

Method summary

Modifier and TypeMethod
protected void
loadAdditional(ValueInput input)
method_11014(class_11368 arg0)
readData(ReadView arg0)
protected void
saveAdditional(ValueOutput output)
method_11007(class_11372 arg0)
writeData(WriteView arg0)
public static void
serverTick(ServerLevel level, BlockPos pos, BlockState state, AbstractFurnaceBlockEntity entity)
method_31651(class_3218 arg0, class_2338 arg1, class_2680 arg2, class_2609 arg3)
tick(ServerWorld world, BlockPos pos, BlockState state, AbstractFurnaceBlockEntity blockEntity)
private static void
consumeFuel(NonNullList<ItemStack> items, ItemStack fuel)
method_1_1632(class_2371<class_1799> arg0, class_1799 arg1)
consumeFuel(DefaultedList<ItemStack> inventory, ItemStack fuelStack)
private static boolean
canBurn(NonNullList<ItemStack> items, int maxStackSize, ItemStack burnResult)
method_11192(class_2371<class_1799> arg0, int arg1, class_1799 arg2)
canAcceptRecipeOutput(DefaultedList<ItemStack> inventory, int maxCount, ItemStack outputStack)
private static void
burn(NonNullList<ItemStack> items, ItemStack inputItemStack, ItemStack result)
method_11203(class_2371<class_1799> arg0, class_1799 arg1, class_1799 arg2)
craftRecipe(DefaultedList<ItemStack> inventory, ItemStack input, ItemStack result)
protected int
getBurnDuration(FuelValues fuelValues, ItemStack itemStack)
method_11200(class_9895 arg0, class_1799 arg1)
getFuelTime(FuelRegistry fuelRegistry, ItemStack stack)
private static int
getTotalCookTime(ServerLevel level, AbstractFurnaceBlockEntity entity)
method_17029(class_3218 arg0, class_2609 arg1)
getCookTime(ServerWorld world, AbstractFurnaceBlockEntity furnace)
public int[]
getSlotsForFace(Direction direction)
method_5494(class_2350 arg0)
getAvailableSlots(Direction arg0)
public boolean
canPlaceItemThroughFace(int slot, ItemStack itemStack, Direction direction)
method_5492(int arg0, class_1799 arg1, class_2350 arg2)
canInsert(int arg0, ItemStack arg1, Direction arg2)
public boolean
canTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction)
method_5493(int arg0, class_1799 arg1, class_2350 arg2)
canExtract(int arg0, ItemStack arg1, Direction arg2)
public int
getContainerSize()
method_5439()
size()
protected DefaultedList<ItemStack>
getItems()
method_11282()
getHeldStacks()
protected void
setItems(NonNullList<ItemStack> items)
method_11281(class_2371<class_1799> arg0)
setHeldStacks(DefaultedList<ItemStack> arg0)
public void
setItem(int slot, ItemStack itemStack)
method_5447(int arg0, class_1799 arg1)
setStack(int arg0, ItemStack arg1)
public boolean
canPlaceItem(int slot, ItemStack itemStack)
method_5437(int arg0, class_1799 arg1)
isValid(int arg0, ItemStack arg1)
public void
setRecipeUsed(RecipeHolder<?> recipeUsed)
method_7662(class_8786<?> arg0)
setLastRecipe(RecipeEntry<?> arg0)
public RecipeEntry<?>
getRecipeUsed()
method_7663()
getLastRecipe()
public void
awardUsedRecipes(Player player, List<ItemStack> itemStacks)
method_7664(class_1657 arg0, List<class_1799> arg1)
unlockLastRecipe(PlayerEntity arg0, List<ItemStack> arg1)
public void
awardUsedRecipesAndPopExperience(ServerPlayer player)
method_17763(class_3222 arg0)
dropExperienceForRecipesUsed(ServerPlayerEntity player)
public List<RecipeEntry<?>>
getRecipesToAwardAndPopExperience(ServerLevel level, Vec3 position)
method_27354(class_3218 arg0, class_243 arg1)
getRecipesUsedAndDropExperience(ServerWorld world, Vec3d pos)
private static void
createExperience(ServerLevel level, Vec3 position, int amount, float value)
method_17760(class_3218 arg0, class_243 arg1, int arg2, float arg3)
dropExperience(ServerWorld world, Vec3d pos, int multiplier, float experience)
public void
fillStackedContents(StackedItemContents contents)
method_7683(class_9875 arg0)
provideRecipeInputs(RecipeFinder arg0)
public void
preRemoveSideEffects(BlockPos pos, BlockState state)
method_66473(class_2338 arg0, class_2680 arg1)
onBlockReplaced(BlockPos arg0, BlockState arg1)
private static void
lambda$getRecipesToAwardAndPopExperience$0(List arg0, ServerLevel arg1, Vec3 arg2, it.unimi.dsi.fastutil.objects.Reference2IntMap$Entry arg3, RecipeHolder arg4)
method_17761(List arg0, class_3218 arg1, class_243 arg2, it.unimi.dsi.fastutil.objects.Reference2IntMap$Entry arg3, class_8786 arg4)
method_17761(List arg0, ServerWorld arg1, Vec3d arg2, it.unimi.dsi.fastutil.objects.Reference2IntMap$Entry arg3, RecipeEntry recipe)
private static Integer
lambda$getTotalCookTime$0(RecipeHolder arg0)
method_53790(class_8786 arg0)
method_53790(RecipeEntry recipe)