Package net.minecraft.block.entity
Class CampfireBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.CampfireBlockEntity
- All Implemented Interfaces:
Clearable
- Mappings:
Namespace Name official csrintermediary net/minecraft/class_3924named net/minecraft/block/entity/CampfireBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]private final int[]private static final intprivate static final intprivate final DefaultedList<ItemStack>private final RecipeManager.MatchGetter<Inventory,CampfireCookingRecipe> Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclear()static voidclientTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire) getRecipeFor(ItemStack stack) static voidlitServerTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire) voidreadNbt(NbtCompound nbt) voidSerializes the state of this block entity that is observable by clients.Implement and return a packet that should be sent to players nearby when the observable state of this block entity changes.static voidunlitServerTick(World world, BlockPos pos, BlockState state, CampfireBlockEntity campfire) private voidprotected voidwriteNbt(NbtCompound nbt) Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, writeIdToNbt
-
Field Details
-
field_31330
private static final int field_31330- See Also:
- Mappings:
Namespace Name Mixin selector official aLcsr;a:Iintermediary field_31330Lnet/minecraft/class_3924;field_31330:Inamed field_31330Lnet/minecraft/block/entity/CampfireBlockEntity;field_31330:I
-
field_31331
private static final int field_31331- See Also:
- Mappings:
Namespace Name Mixin selector official bLcsr;b:Iintermediary field_31331Lnet/minecraft/class_3924;field_31331:Inamed field_31331Lnet/minecraft/block/entity/CampfireBlockEntity;field_31331:I
-
itemsBeingCooked
- Mappings:
Namespace Name Mixin selector official cLcsr;c:Lhi;intermediary field_17383Lnet/minecraft/class_3924;field_17383:Lnet/minecraft/class_2371;named itemsBeingCookedLnet/minecraft/block/entity/CampfireBlockEntity;itemsBeingCooked:Lnet/minecraft/util/collection/DefaultedList;
-
cookingTimes
private final int[] cookingTimes- Mappings:
Namespace Name Mixin selector official dLcsr;d:[Iintermediary field_17384Lnet/minecraft/class_3924;field_17384:[Inamed cookingTimesLnet/minecraft/block/entity/CampfireBlockEntity;cookingTimes:[I
-
cookingTotalTimes
private final int[] cookingTotalTimes- Mappings:
Namespace Name Mixin selector official eLcsr;e:[Iintermediary field_17385Lnet/minecraft/class_3924;field_17385:[Inamed cookingTotalTimesLnet/minecraft/block/entity/CampfireBlockEntity;cookingTotalTimes:[I
-
matchGetter
- Mappings:
Namespace Name Mixin selector official fLcsr;f:Lccv$a;intermediary field_38235Lnet/minecraft/class_3924;field_38235:Lnet/minecraft/class_1863$class_7266;named matchGetterLnet/minecraft/block/entity/CampfireBlockEntity;matchGetter:Lnet/minecraft/recipe/RecipeManager$MatchGetter;
-
-
Constructor Details
-
CampfireBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcsr;<init>(Lgt;Lcut;)Vintermediary <init>Lnet/minecraft/class_3924;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <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 aLcsr;a(Lcgc;Lgt;Lcut;Lcsr;)Vintermediary method_31666Lnet/minecraft/class_3924;method_31666(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3924;)Vnamed litServerTickLnet/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 bLcsr;b(Lcgc;Lgt;Lcut;Lcsr;)Vintermediary method_31667Lnet/minecraft/class_3924;method_31667(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3924;)Vnamed unlitServerTickLnet/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 cLcsr;c(Lcgc;Lgt;Lcut;Lcsr;)Vintermediary method_31668Lnet/minecraft/class_3924;method_31668(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3924;)Vnamed clientTickLnet/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 cLcsr;c()Lhi;intermediary method_17505Lnet/minecraft/class_3924;method_17505()Lnet/minecraft/class_2371;named getItemsBeingCookedLnet/minecraft/block/entity/CampfireBlockEntity;getItemsBeingCooked()Lnet/minecraft/util/collection/DefaultedList;
-
readNbt
- Overrides:
readNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcsn;a(Lpj;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
- Overrides:
writeNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLcsn;b(Lpj;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
toUpdatePacket
Description copied from class:BlockEntityImplement and return a packet that should be sent to players nearby when the observable state of this block entity changes. Return null to not send an update packet.If the data returned by
initial chunk datais suitable for updates, the following shortcut can be used to create an update packet:BlockEntityUpdateS2CPacket.create(this).The NBT will be passed to
BlockEntity.readNbt(net.minecraft.nbt.NbtCompound)on the client.- Overrides:
toUpdatePacketin classBlockEntity- Mappings:
Namespace Name Mixin selector official dLcsr;d()Lsz;intermediary method_38245Lnet/minecraft/class_3924;method_38245()Lnet/minecraft/class_2622;named toUpdatePacketLnet/minecraft/block/entity/CampfireBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataNbt
Serializes the state of this block entity that is observable by clients. It is sent alongside the initial chunk data, as well as when the block entity implementsBlockEntity.toUpdatePacket()and decides to use the defaultBlockEntityUpdateS2CPacket.- Overrides:
toInitialChunkDataNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aa_Lcsn;aa_()Lpj;intermediary method_16887Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;named toInitialChunkDataNbtLnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/NbtCompound;
-
getRecipeFor
- Mappings:
Namespace Name Mixin selector official aLcsr;a(Lcac;)Ljava/util/Optional;intermediary method_17502Lnet/minecraft/class_3924;method_17502(Lnet/minecraft/class_1799;)Ljava/util/Optional;named getRecipeForLnet/minecraft/block/entity/CampfireBlockEntity;getRecipeFor(Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
-
addItem
- Mappings:
Namespace Name Mixin selector official aLcsr;a(Lbas;Lcac;I)Zintermediary method_17503Lnet/minecraft/class_3924;method_17503(Lnet/minecraft/class_1297;Lnet/minecraft/class_1799;I)Znamed addItemLnet/minecraft/block/entity/CampfireBlockEntity;addItem(Lnet/minecraft/entity/Entity;Lnet/minecraft/item/ItemStack;I)Z
-
updateListeners
private void updateListeners()- Mappings:
Namespace Name Mixin selector official gLcsr;g()Vintermediary method_17510Lnet/minecraft/class_3924;method_17510()Vnamed updateListenersLnet/minecraft/block/entity/CampfireBlockEntity;updateListeners()V
-
clear
public void clear() -
spawnItemsBeingCooked
public void spawnItemsBeingCooked()- Mappings:
Namespace Name Mixin selector official fLcsr;f()Vintermediary method_17506Lnet/minecraft/class_3924;method_17506()Vnamed spawnItemsBeingCookedLnet/minecraft/block/entity/CampfireBlockEntity;spawnItemsBeingCooked()V
-