Class TexturedChestBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.AbstractChestBlock<net.minecraft.block.entity.ChestBlockEntity>
net.minecraft.block.ChestBlock
net.anawesomguy.wsmlmb.block.chest.TexturedChestBlock
- All Implemented Interfaces:
net.fabricmc.fabric.api.block.v1.FabricBlock,net.minecraft.block.BlockEntityProvider,net.minecraft.block.FluidDrainable,net.minecraft.block.FluidFillable,net.minecraft.block.Waterloggable,net.minecraft.item.ItemConvertible
public class TexturedChestBlock
extends net.minecraft.block.ChestBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class forTexturedChestBlock, since blocks should be immutable.Nested classes/interfaces inherited from class net.minecraft.block.Block
net.minecraft.block.Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
net.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.ContextPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Settings, net.minecraft.block.AbstractBlock.TypedContextPredicate<A extends Object> -
Field Summary
Fields inherited from class net.minecraft.block.ChestBlock
CHEST_TYPE, DOUBLE_EAST_SHAPE, DOUBLE_NORTH_SHAPE, DOUBLE_SOUTH_SHAPE, DOUBLE_WEST_SHAPE, FACING, field_31057, field_31058, field_31059, SINGLE_SHAPE, WATERLOGGEDFields inherited from class net.minecraft.block.AbstractChestBlock
entityTypeRetrieverFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
ConstructorsConstructorDescriptionTexturedChestBlock(net.minecraft.block.AbstractBlock.Settings settings, ChestTriple normalTextures, ChestTriple christmasTextures) -
Method Summary
Modifier and TypeMethodDescriptioncreateBlockEntity(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state) @NotNull ChestTriple@NotNull ChestTriple@NotNull ChestTriplegetTextures(boolean christmas) Methods inherited from class net.minecraft.block.ChestBlock
appendProperties, canPathfindThrough, createScreenHandlerFactory, getAnimationProgressRetriever, getBlockEntitySource, getComparatorOutput, getDoubleBlockType, getExpectedEntityType, getFacing, getFluidState, getInventory, getOpenStat, getOutlineShape, getPlacementState, getRenderType, getStateForNeighborUpdate, getTicker, hasComparatorOutput, isChestBlocked, mirror, onPlaced, onStateReplaced, onUse, rotate, scheduledTickMethods inherited from class net.minecraft.block.BlockWithEntity
checkType, onSyncedBlockEventMethods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, prepare, randomTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.BlockEntityProvider
getGameEventListenerMethods inherited from interface net.fabricmc.fabric.api.block.v1.FabricBlock
getAppearanceMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Constructor Details
-
TexturedChestBlock
public TexturedChestBlock(net.minecraft.block.AbstractBlock.Settings settings, ChestTriple normalTextures, ChestTriple christmasTextures)
-
-
Method Details
-
createBlockEntity
public TexturedChestBlockEntity createBlockEntity(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state) - Specified by:
createBlockEntityin interfacenet.minecraft.block.BlockEntityProvider- Overrides:
createBlockEntityin classnet.minecraft.block.ChestBlock
-
getTextures
- Returns:
- the textures for this chest.
-
getChristmasTextures
- Returns:
- the textures for this chest, when it is Christmas.
-
getTextures
-