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,net.minecraft.resource.featuretoggle.ToggleableFeature
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.Offsetter, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Settings, net.minecraft.block.AbstractBlock.TypedContextPredicate<A extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TexturedChestBlock>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_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
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 ChestTriplecom.mojang.serialization.MapCodec<? extends net.minecraft.block.ChestBlock>getCodec()@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
onSyncedBlockEvent, validateTickerMethods inherited from class net.minecraft.block.Block
afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, 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, isTransparent, 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, createCodec, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRequiredFeatures, getSettings, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, 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.resource.featuretoggle.ToggleableFeature
isEnabledMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
CODEC
-
-
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
-
getCodec
public com.mojang.serialization.MapCodec<? extends net.minecraft.block.ChestBlock> getCodec()- Overrides:
getCodecin classnet.minecraft.block.ChestBlock
-