Class CampfireBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.CampfireBlockEntity
- All Implemented Interfaces:
Clearable
,ICapabilityProvider
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private int[]
private int[]
private NonNullList<ItemStack>
private static int
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
cookTick(Level p_155307_, BlockPos p_155308_, BlockState p_155309_, CampfireBlockEntity p_155310_)
static void
cooldownTick(Level p_155314_, BlockPos p_155315_, BlockState p_155316_, CampfireBlockEntity p_155317_)
void
dowse()
getCookableRecipe(ItemStack p_59052_)
getItems()
void
load(CompoundTag p_155312_)
private void
static void
particleTick(Level p_155319_, BlockPos p_155320_, BlockState p_155321_, CampfireBlockEntity p_155322_)
boolean
save(CompoundTag p_59060_)
private CompoundTag
saveMetadataAndItems(CompoundTag p_59064_)
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
BURN_COOL_SPEED
private static final int BURN_COOL_SPEED- See Also:
- Constant Field Values
-
NUM_SLOTS
private static final int NUM_SLOTS- See Also:
- Constant Field Values
-
items
-
cookingProgress
private final int[] cookingProgress -
cookingTime
private final int[] cookingTime
-
-
Constructor Details
-
CampfireBlockEntity
-
-
Method Details
-
cookTick
public static void cookTick(Level p_155307_, BlockPos p_155308_, BlockState p_155309_, CampfireBlockEntity p_155310_) -
cooldownTick
public static void cooldownTick(Level p_155314_, BlockPos p_155315_, BlockState p_155316_, CampfireBlockEntity p_155317_) -
particleTick
public static void particleTick(Level p_155319_, BlockPos p_155320_, BlockState p_155321_, CampfireBlockEntity p_155322_) -
getItems
-
load
- Overrides:
load
in classBlockEntity
-
save
- Overrides:
save
in classBlockEntity
-
saveMetadataAndItems
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classBlockEntity
-
getCookableRecipe
-
placeFood
-
markUpdated
private void markUpdated() -
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceClearable
-
dowse
public void dowse()
-