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 clw
intermediary net/minecraft/class_3924
named net/minecraft/block/entity/CampfireBlockEntity
  • Field Details

    • field_31330

      private static final int field_31330
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lclw;a:I
      intermediary field_31330 Lnet/minecraft/class_3924;field_31330:I
      named field_31330 Lnet/minecraft/block/entity/CampfireBlockEntity;field_31330:I
    • field_31331

      private static final int field_31331
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lclw;b:I
      intermediary field_31331 Lnet/minecraft/class_3924;field_31331:I
      named field_31331 Lnet/minecraft/block/entity/CampfireBlockEntity;field_31331:I
    • itemsBeingCooked

      private final DefaultedList<ItemStack> itemsBeingCooked
      Mappings:
      Namespace Name Mixin selector
      official c Lclw;c:Lgt;
      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 d Lclw;d:[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 e Lclw;e:[I
      intermediary field_17385 Lnet/minecraft/class_3924;field_17385:[I
      named cookingTotalTimes Lnet/minecraft/block/entity/CampfireBlockEntity;cookingTotalTimes:[I
  • Constructor Details

    • CampfireBlockEntity

      public CampfireBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lclw;<init>(Lgh;Lcnv;)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 Lclw;a(Lbzw;Lgh;Lcnv;Lclw;)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 Lclw;b(Lbzw;Lgh;Lcnv;Lclw;)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 Lclw;c(Lbzw;Lgh;Lcnv;Lclw;)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

      public DefaultedList<ItemStack> getItemsBeingCooked()
      Mappings:
      Namespace Name Mixin selector
      official c Lclw;c()Lgt;
      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;
    • readNbt

      public void readNbt(NbtCompound nbt)
      Overrides:
      readNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcls;a(Lob;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeNbt

      protected void writeNbt(NbtCompound nbt)
      Overrides:
      writeNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lcls;b(Lob;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • toUpdatePacket

      public BlockEntityUpdateS2CPacket toUpdatePacket()
      Description copied from class: BlockEntity
      Implement 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 data is 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:
      toUpdatePacket in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official d Lclw;d()Lqz;
      intermediary method_38245 Lnet/minecraft/class_3924;method_38245()Lnet/minecraft/class_2622;
      named toUpdatePacket Lnet/minecraft/block/entity/CampfireBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
    • toInitialChunkDataNbt

      public NbtCompound 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 implements BlockEntity.toUpdatePacket() and decides to use the default BlockEntityUpdateS2CPacket.
      Overrides:
      toInitialChunkDataNbt in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official Z_ Lcls;Z_()Lob;
      intermediary method_16887 Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
      named toInitialChunkDataNbt Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt()Lnet/minecraft/nbt/NbtCompound;
    • getRecipeFor

      public Optional<CampfireCookingRecipe> getRecipeFor(ItemStack item)
      Mappings:
      Namespace Name Mixin selector
      official a Lclw;a(Lbtx;)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

      public boolean addItem(ItemStack item, int integer)
      Mappings:
      Namespace Name Mixin selector
      official a Lclw;a(Lbtx;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 g Lclw;g()V
      intermediary method_17510 Lnet/minecraft/class_3924;method_17510()V
      named updateListeners Lnet/minecraft/block/entity/CampfireBlockEntity;updateListeners()V
    • clear

      public void clear()
      Specified by:
      clear in interface Clearable
      Mappings:
      Namespace Name Mixin selector
      official a Lava;a()V
      intermediary method_5448 Lnet/minecraft/class_3829;method_5448()V
      named clear Lnet/minecraft/util/Clearable;clear()V
    • spawnItemsBeingCooked

      public void spawnItemsBeingCooked()
      Mappings:
      Namespace Name Mixin selector
      official f Lclw;f()V
      intermediary method_17506 Lnet/minecraft/class_3924;method_17506()V
      named spawnItemsBeingCooked Lnet/minecraft/block/entity/CampfireBlockEntity;spawnItemsBeingCooked()V