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.screenhandler.v1.FabricScreenHandlerFactory,net.minecraft.block.entity.LidOpenable,net.minecraft.inventory.Inventory,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
-
Field Summary
Fields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY, lootTableId, lootTableSeedFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, worldFields inherited from interface net.minecraft.inventory.Inventory
MAX_COUNT_PER_STACK -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTexturedChestBlockEntity(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
Methods inherited from class net.minecraft.block.entity.ChestBlockEntity
clientTick, copyInventory, createScreenHandler, getAnimationProgress, getContainerName, getInvStackList, getPlayersLookingInChestCount, onClose, onInvOpenOrClose, onOpen, onScheduledTick, onSyncedBlockEvent, readNbt, setInvStackList, size, writeNbtMethods inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
canPlayerUse, checkLootInteraction, checkUnlocked, clear, createMenu, deserializeLootTable, getStack, isEmpty, removeStack, removeStack, serializeLootTable, setLootTable, setLootTable, setStackMethods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, getCustomName, getDisplayName, getName, setCustomNameMethods 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, writeIdToNbtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.screenhandler.v1.FabricScreenHandlerFactory
shouldCloseCurrentScreenMethods inherited from interface net.minecraft.inventory.Inventory
containsAny, containsAny, count, getMaxCountPerStack, isValid, markDirtyMethods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
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
- Returns:
- the textures used for this chest when it is Christmas.
-
getTextures
- Returns:
- the textures used for this chest when it is not Christmas.
-
getTextures
- Parameters:
christmas- if the textures returned will be for Christmas.- Returns:
- a
ChestTripleof the textures used for this chest.
-