Class TexturedChestBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.LockableContainerBlockEntity
net.minecraft.block.entity.LootableContainerBlockEntity
net.minecraft.block.entity.ChestBlockEntity
net.anawesomguy.wsmlmb.block.chest.TexturedChestBlockEntity
All Implemented Interfaces:
net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity, net.fabricmc.fabric.api.screenhandler.v1.FabricScreenHandlerFactory, net.minecraft.block.entity.LidOpenable, net.minecraft.inventory.Inventory, net.minecraft.inventory.LootableInventory, net.minecraft.screen.NamedScreenHandlerFactory, net.minecraft.screen.ScreenHandlerFactory, net.minecraft.util.Clearable, net.minecraft.util.Nameable

public class TexturedChestBlockEntity extends net.minecraft.block.entity.ChestBlockEntity
See Also:
  • Field Summary

    Fields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity

    lootTableId, lootTableSeed

    Fields inherited from class net.minecraft.block.entity.BlockEntity

    pos, removed, world

    Fields inherited from interface net.minecraft.inventory.Inventory

    field_42619, MAX_COUNT_PER_STACK

    Fields inherited from interface net.minecraft.inventory.LootableInventory

    LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    TexturedChestBlockEntity(net.minecraft.block.entity.BlockEntityType<?> type, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, ChestTriple.Sprite normalTextures, ChestTriple.Sprite christmasTextures)
     
     
    TexturedChestBlockEntity(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, ChestTriple.Sprite normalTextures, ChestTriple.Sprite christmasTextures)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    getTextures(boolean christmas)
     

    Methods inherited from class net.minecraft.block.entity.ChestBlockEntity

    clientTick, copyInventory, createScreenHandler, getAnimationProgress, getContainerName, getPlayersLookingInChestCount, method_11282, onClose, onOpen, onScheduledTick, onSyncedBlockEvent, onViewerCountUpdate, readNbt, setInvStackList, size, writeNbt

    Methods inherited from class net.minecraft.block.entity.LootableContainerBlockEntity

    canPlayerUse, checkUnlocked, clear, createMenu, getLootTableId, getLootTableSeed, getStack, isEmpty, removeStack, removeStack, setLootTableId, setLootTableSeed, setStack

    Methods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity

    checkUnlocked, getCustomName, getDisplayName, getName, setCustomName

    Methods inherited from class net.minecraft.block.entity.BlockEntity

    cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.screenhandler.v1.FabricScreenHandlerFactory

    shouldCloseCurrentScreen

    Methods inherited from interface net.minecraft.inventory.Inventory

    canTransferTo, containsAny, containsAny, count, getMaxCountPerStack, isValid, markDirty

    Methods inherited from interface net.minecraft.inventory.LootableInventory

    generateLoot, getPos, getWorld, readLootTable, setLootTable, writeLootTable

    Methods inherited from interface net.minecraft.util.Nameable

    hasCustomName

    Methods inherited from interface net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity

    getRenderData
  • Constructor Details

    • TexturedChestBlockEntity

      protected TexturedChestBlockEntity(net.minecraft.block.entity.BlockEntityType<?> type, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, ChestTriple.Sprite normalTextures, ChestTriple.Sprite christmasTextures)
    • TexturedChestBlockEntity

      @Internal public TexturedChestBlockEntity(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, ChestTriple.Sprite normalTextures, ChestTriple.Sprite christmasTextures)
  • Method Details

    • getChristmasTextures

      public ChestTriple.Sprite getChristmasTextures()
      Returns:
      the textures used for this chest when it is Christmas.
    • getTextures

      public ChestTriple.Sprite getTextures()
      Returns:
      the textures used for this chest when it is not Christmas.
    • getTextures

      public ChestTriple.Sprite getTextures(boolean christmas)
      Parameters:
      christmas - if the textures returned will be for Christmas.
      Returns:
      the textures used for this chest.