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 Classes
    Modifier and Type
    Class
    Description
    static class 
    A builder class for TexturedChestBlock, since blocks should be immutable.

    Nested classes/interfaces inherited from class net.minecraft.block.Block

    net.minecraft.block.Block.NeighborGroup

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static 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, WATERLOGGED

    Fields inherited from class net.minecraft.block.AbstractChestBlock

    entityTypeRetriever

    Fields 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, stateManager

    Fields inherited from class net.minecraft.block.AbstractBlock

    collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier

    Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature

    FEATURE_ENABLED_REGISTRY_KEYS
  • Constructor Summary

    Constructors
    Constructor
    Description
    TexturedChestBlock(net.minecraft.block.AbstractBlock.Settings settings, ChestTriple normalTextures, ChestTriple christmasTextures)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createBlockEntity(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
     
    @NotNull ChestTriple
     
    com.mojang.serialization.MapCodec<? extends net.minecraft.block.ChestBlock>
     
    @NotNull ChestTriple
     
    @NotNull ChestTriple
    getTextures(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, scheduledTick

    Methods inherited from class net.minecraft.block.BlockWithEntity

    onSyncedBlockEvent, validateTicker

    Methods 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, toString

    Methods 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, randomTick

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.block.BlockEntityProvider

    getGameEventListener

    Methods inherited from interface net.fabricmc.fabric.api.block.v1.FabricBlock

    getAppearance

    Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature

    isEnabled

    Methods inherited from interface net.minecraft.block.Waterloggable

    canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
  • Field Details

  • 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:
      createBlockEntity in interface net.minecraft.block.BlockEntityProvider
      Overrides:
      createBlockEntity in class net.minecraft.block.ChestBlock
    • getTextures

      @NotNull public @NotNull ChestTriple getTextures()
      Returns:
      the textures for this chest.
    • getChristmasTextures

      @NotNull public @NotNull ChestTriple getChristmasTextures()
      Returns:
      the textures for this chest, when it is Christmas.
    • getTextures

      @NotNull public @NotNull ChestTriple getTextures(boolean christmas)
    • getCodec

      public com.mojang.serialization.MapCodec<? extends net.minecraft.block.ChestBlock> getCodec()
      Overrides:
      getCodec in class net.minecraft.block.ChestBlock