Package net.minecraft.block.entity
Class CampfireBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CampfireBlockEntity
- All Implemented Interfaces:
Clearable
public class CampfireBlockEntity extends BlockEntity implements Clearable
- Mappings:
Namespace Name official cfv
intermediary net/minecraft/class_3924
named net/minecraft/block/entity/CampfireBlockEntity
-
Field Summary
Fields Modifier and Type Field Description private int[]
cookingTimes
private int[]
cookingTotalTimes
private DefaultedList<ItemStack>
itemsBeingCooked
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description CampfireBlockEntity(BlockPos pos, BlockState state)
-
Method Summary
Modifier and Type Method Description boolean
addItem(ItemStack item, int integer)
void
clear()
static void
clientTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire)
void
fromTag(CompoundTag tag)
DefaultedList<ItemStack>
getItemsBeingCooked()
Optional<CampfireCookingRecipe>
getRecipeFor(ItemStack item)
static void
litServerTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire)
private CompoundTag
saveInitialChunkData(CompoundTag tag)
void
spawnItemsBeingCooked()
CompoundTag
toInitialChunkDataTag()
CompoundTag
toTag(CompoundTag tag)
BlockEntityUpdateS2CPacket
toUpdatePacket()
static void
unlitServerTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire)
private void
updateListeners()
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld
-
Field Details
-
itemsBeingCooked
- Mappings:
Namespace Name Mixin selector official a
Lcfv;a:Lgj;
intermediary field_17383
Lnet/minecraft/class_3924;field_17383:Lnet/minecraft/class_2371;
named itemsBeingCooked
Lnet/minecraft/block/entity/CampfireBlockEntity;itemsBeingCooked:Lnet/minecraft/util/collection/DefaultedList;
-
cookingTimes
private final int[] cookingTimes- Mappings:
Namespace Name Mixin selector official b
Lcfv;b:[I
intermediary field_17384
Lnet/minecraft/class_3924;field_17384:[I
named cookingTimes
Lnet/minecraft/block/entity/CampfireBlockEntity;cookingTimes:[I
-
cookingTotalTimes
private final int[] cookingTotalTimes- Mappings:
Namespace Name Mixin selector official c
Lcfv;c:[I
intermediary field_17385
Lnet/minecraft/class_3924;field_17385:[I
named cookingTotalTimes
Lnet/minecraft/block/entity/CampfireBlockEntity;cookingTotalTimes:[I
-
-
Constructor Details
-
CampfireBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lcfv;<init>(Lfx;Lcht;)V
intermediary <init>
Lnet/minecraft/class_3924;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/CampfireBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
litServerTick
public static void litServerTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire)- Mappings:
Namespace Name Mixin selector official a
Lcfv;a(Lbtv;Lfx;Lcht;Lcfv;)V
intermediary method_31666
Lnet/minecraft/class_3924;method_31666(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3924;)V
named litServerTick
Lnet/minecraft/block/entity/CampfireBlockEntity;litServerTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/CampfireBlockEntity;)V
-
unlitServerTick
public static void unlitServerTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire)- Mappings:
Namespace Name Mixin selector official b
Lcfv;b(Lbtv;Lfx;Lcht;Lcfv;)V
intermediary method_31667
Lnet/minecraft/class_3924;method_31667(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3924;)V
named unlitServerTick
Lnet/minecraft/block/entity/CampfireBlockEntity;unlitServerTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/CampfireBlockEntity;)V
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire)- Mappings:
Namespace Name Mixin selector official c
Lcfv;c(Lbtv;Lfx;Lcht;Lcfv;)V
intermediary method_31668
Lnet/minecraft/class_3924;method_31668(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3924;)V
named clientTick
Lnet/minecraft/block/entity/CampfireBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/CampfireBlockEntity;)V
-
getItemsBeingCooked
- Mappings:
Namespace Name Mixin selector official d
Lcfv;d()Lgj;
intermediary method_17505
Lnet/minecraft/class_3924;method_17505()Lnet/minecraft/class_2371;
named getItemsBeingCooked
Lnet/minecraft/block/entity/CampfireBlockEntity;getItemsBeingCooked()Lnet/minecraft/util/collection/DefaultedList;
-
fromTag
- Overrides:
fromTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lmq;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named fromTag
Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Overrides:
toTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b(Lmq;)Lmq;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
saveInitialChunkData
- Mappings:
Namespace Name Mixin selector official c
Lcfv;c(Lmq;)Lmq;
intermediary method_17507
Lnet/minecraft/class_3924;method_17507(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named saveInitialChunkData
Lnet/minecraft/block/entity/CampfireBlockEntity;saveInitialChunkData(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
toUpdatePacket
- Overrides:
toUpdatePacket
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a()Lpo;
intermediary method_16886
Lnet/minecraft/class_2586;method_16886()Lnet/minecraft/class_2622;
named toUpdatePacket
Lnet/minecraft/block/entity/BlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b()Lmq;
intermediary method_16887
Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
named toInitialChunkDataTag
Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataTag()Lnet/minecraft/nbt/CompoundTag;
-
getRecipeFor
- Mappings:
Namespace Name Mixin selector official a
Lcfv;a(Lbnv;)Ljava/util/Optional;
intermediary method_17502
Lnet/minecraft/class_3924;method_17502(Lnet/minecraft/class_1799;)Ljava/util/Optional;
named getRecipeFor
Lnet/minecraft/block/entity/CampfireBlockEntity;getRecipeFor(Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
-
addItem
- Mappings:
Namespace Name Mixin selector official a
Lcfv;a(Lbnv;I)Z
intermediary method_17503
Lnet/minecraft/class_3924;method_17503(Lnet/minecraft/class_1799;I)Z
named addItem
Lnet/minecraft/block/entity/CampfireBlockEntity;addItem(Lnet/minecraft/item/ItemStack;I)Z
-
updateListeners
private void updateListeners()- Mappings:
Namespace Name Mixin selector official h
Lcfv;h()V
intermediary method_17510
Lnet/minecraft/class_3924;method_17510()V
named updateListeners
Lnet/minecraft/block/entity/CampfireBlockEntity;updateListeners()V
-
clear
public void clear() -
spawnItemsBeingCooked
public void spawnItemsBeingCooked()- Mappings:
Namespace Name Mixin selector official f
Lcfv;f()V
intermediary method_17506
Lnet/minecraft/class_3924;method_17506()V
named spawnItemsBeingCooked
Lnet/minecraft/block/entity/CampfireBlockEntity;spawnItemsBeingCooked()V
-