net.minecraft.block.entity

public class CampfireBlockEntity

extends BlockEntity implements Clearable

All mapped superinterfaces:

DebugTrackable, EntryConvertible, Clearable

net.minecraft.world.level.block.entity.CampfireBlockEntity
net.minecraft.class_3924
net.minecraft.block.entity.CampfireBlockEntity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_60371
LOGGER
private static final int
BURN_COOL_SPEED
field_31330
field_31330
private static final int
NUM_SLOTS
field_31331
field_31331
private final DefaultedList<ItemStack>
items
field_17383
itemsBeingCooked
private final int[]
cookingProgress
field_17384
cookingTimes
private final int[]
cookingTime
field_17385
cookingTotalTimes

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public static void
cookTick(ServerLevel level, BlockPos pos, BlockState state, CampfireBlockEntity entity, RecipeManager$CachedCheck<SingleRecipeInput, CampfireCookingRecipe> recipeCache)
method_31666(class_3218 arg0, class_2338 arg1, class_2680 arg2, class_3924 arg3, class_1863$class_7266<class_9696, class_1_176> arg4)
litServerTick(ServerWorld world, BlockPos pos, BlockState state, CampfireBlockEntity blockEntity, ServerRecipeManager$MatchGetter<SingleStackRecipeInput, CampfireCookingRecipe> recipeMatchGetter)
public static void
cooldownTick(Level level, BlockPos pos, BlockState state, CampfireBlockEntity entity)
method_31667(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_3924 arg3)
unlitServerTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire)
public static void
particleTick(Level level, BlockPos pos, BlockState state, CampfireBlockEntity entity)
method_31668(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_3924 arg3)
clientTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire)
public DefaultedList<ItemStack>
getItems()
method_17505()
getItemsBeingCooked()
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 BlockEntityUpdateS2CPacket
getUpdatePacket()
method_38235()
toUpdatePacket()
public NbtCompound
getUpdateTag(HolderLookup$Provider registries)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
public boolean
placeFood(ServerLevel serverLevel, LivingEntity sourceEntity, ItemStack placeItem)
method_17503(class_3218 arg0, class_1309 arg1, class_1799 arg2)
addItem(ServerWorld world, LivingEntity entity, ItemStack stack)
private void
markUpdated()
method_17510()
updateListeners()
public void
clearContent()
method_5448()
clear()
public void
preRemoveSideEffects(BlockPos pos, BlockState state)
method_66473(class_2338 arg0, class_2680 arg1)
onBlockReplaced(BlockPos arg0, BlockState arg1)
protected void
applyImplicitComponents(DataComponentGetter components)
method_57568(class_9473 arg0)
readComponents(ComponentsAccess arg0)
protected void
collectImplicitComponents(DataComponentMap$Builder components)
method_57567(class_9323$class_9324 arg0)
addComponents(ComponentMap$Builder arg0)
public void
removeComponentsFromTag(ValueOutput output)
method_57569(class_11372 arg0)
removeFromCopiedStackData(WriteView arg0)
public Packet
getUpdatePacket()
method_38235()
toUpdatePacket()
private void
lambda$loadAdditional$3()
method_68283()
method_68283()
private void
lambda$loadAdditional$2(int[] arg0)
method_68281(int[] arg0)
method_68281(int[] arg0)
private void
lambda$loadAdditional$1()
method_68284()
method_68284()
private void
lambda$loadAdditional$0(int[] arg0)
method_68282(int[] arg0)
method_68282(int[] arg0)
private static ItemStack
lambda$cookTick$0(SingleRecipeInput arg0, RecipeHolder arg1)
method_17504(class_9696 arg0, class_8786 arg1)
method_17504(SingleStackRecipeInput arg0, RecipeEntry recipe)