Class DyedAmethystClusterBlock

java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
All Implemented Interfaces:
BlockConvertible, Custom, Registered, Registered.Client, Registered.Common, Registered.Generated, net.fabricmc.fabric.api.block.v1.FabricBlock, net.minecraft.item.ItemConvertible, net.minecraft.resource.featuretoggle.ToggleableFeature

public class DyedAmethystClusterBlock extends DyedAmethystBlock implements Registered.Client
Defines dyed amethyst cluster blocks.
Since:
2.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    A variant of an amethyst cluster block.

    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>

    Nested classes/interfaces inherited from interface dev.jaxydog.astral.register.Registered

    Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item>
    An item tag containing all amethyst clusters.
    static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block>
    A block tag containing all amethyst clusters.
    static final net.minecraft.state.property.DirectionProperty
    Controls the direction the block is facing.
    static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item>
    An item tag containing all large amethyst buds.
    static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block>
    A block tag containing all large amethyst buds.
    static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item>
    An item tag containing all medium amethyst buds.
    static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block>
    A block tag containing all medium amethyst buds.
    static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item>
    An item tag containing all small amethyst buds.
    static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block>
    A block tag containing all small amethyst buds.
    static final net.minecraft.state.property.BooleanProperty
    Controls whether the block is waterlogged.

    Fields inherited from class dev.jaxydog.astral.content.block.custom.DyedAmethystBlock

    AMETHYST_BLOCK_ITEMS, AMETHYST_BLOCKS, BLOCK_CHIME_SOUND, BLOCK_HIT_SOUND, DYE_MAPPER

    Fields 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, 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
    DyedAmethystClusterBlock(String path, net.minecraft.block.AbstractBlock.Settings settings, net.minecraft.util.DyeColor color, DyedAmethystClusterBlock.Type type)
    Creates a new block using the given settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    appendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
     
    boolean
    canPlaceAt(net.minecraft.block.BlockState state, net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos)
     
    void
    Generates game assets or data.
    net.minecraft.fluid.FluidState
    getFluidState(net.minecraft.block.BlockState state)
     
    net.minecraft.util.shape.VoxelShape
    getOutlineShape(net.minecraft.block.BlockState state, net.minecraft.world.BlockView world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.ShapeContext context)
     
    @Nullable net.minecraft.block.BlockState
    getPlacementState(net.minecraft.item.ItemPlacementContext ctx)
     
    net.minecraft.block.BlockState
    getStateForNeighborUpdate(net.minecraft.block.BlockState state, net.minecraft.util.math.Direction direction, net.minecraft.block.BlockState neighborState, net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos neighborPos)
     
    Returns the amethyst cluster type of this instance.
    net.minecraft.block.BlockState
    mirror(net.minecraft.block.BlockState state, net.minecraft.util.BlockMirror mirror)
     
    void
    Registers this value on the client environment.
    net.minecraft.block.BlockState
    rotate(net.minecraft.block.BlockState state, net.minecraft.util.BlockRotation rotation)
     

    Methods inherited from class dev.jaxydog.astral.content.block.custom.DyedAmethystBlock

    getColor, onProjectileHit

    Methods inherited from class dev.jaxydog.astral.content.block.AstralBlock

    asBlock, getRegistryPath

    Methods inherited from class net.minecraft.block.Block

    afterBreak, appendTooltip, 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, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString

    Methods inherited from class net.minecraft.block.AbstractBlock

    calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTick

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface dev.jaxydog.astral.content.block.Custom

    registerCommon

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

    getAppearance

    Methods inherited from interface dev.jaxydog.astral.register.Registered

    getRegistryId, getRegistryPath

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

    isEnabled
  • Field Details

    • AMETHYST_CLUSTERS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block> AMETHYST_CLUSTERS
      A block tag containing all amethyst clusters.
      Since:
      2.0.0
    • LARGE_AMETHYST_BUDS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block> LARGE_AMETHYST_BUDS
      A block tag containing all large amethyst buds.
      Since:
      2.0.0
    • MEDIUM_AMETHYST_BUDS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block> MEDIUM_AMETHYST_BUDS
      A block tag containing all medium amethyst buds.
      Since:
      2.0.0
    • SMALL_AMETHYST_BUDS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block> SMALL_AMETHYST_BUDS
      A block tag containing all small amethyst buds.
      Since:
      2.0.0
    • AMETHYST_CLUSTER_ITEMS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item> AMETHYST_CLUSTER_ITEMS
      An item tag containing all amethyst clusters.
      Since:
      2.0.0
    • LARGE_AMETHYST_BUD_ITEMS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item> LARGE_AMETHYST_BUD_ITEMS
      An item tag containing all large amethyst buds.
      Since:
      2.0.0
    • MEDIUM_AMETHYST_BUD_ITEMS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item> MEDIUM_AMETHYST_BUD_ITEMS
      An item tag containing all medium amethyst buds.
      Since:
      2.0.0
    • SMALL_AMETHYST_BUD_ITEMS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item> SMALL_AMETHYST_BUD_ITEMS
      An item tag containing all small amethyst buds.
      Since:
      2.0.0
    • WATERLOGGED

      public static final net.minecraft.state.property.BooleanProperty WATERLOGGED
      Controls whether the block is waterlogged.
      Since:
      2.0.0
    • FACING

      public static final net.minecraft.state.property.DirectionProperty FACING
      Controls the direction the block is facing.
      Since:
      2.0.0
  • Constructor Details

    • DyedAmethystClusterBlock

      public DyedAmethystClusterBlock(String path, net.minecraft.block.AbstractBlock.Settings settings, net.minecraft.util.DyeColor color, DyedAmethystClusterBlock.Type type)
      Creates a new block using the given settings.
      Parameters:
      path - The block's identifier path.
      settings - The block's settings.
      color - The block's color.
      Since:
      2.0.0
  • Method Details

    • getType

      Returns the amethyst cluster type of this instance.
      Returns:
      The cluster type.
      Since:
      2.0.0
    • getStateForNeighborUpdate

      public net.minecraft.block.BlockState getStateForNeighborUpdate(net.minecraft.block.BlockState state, net.minecraft.util.math.Direction direction, net.minecraft.block.BlockState neighborState, net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos neighborPos)
      Overrides:
      getStateForNeighborUpdate in class net.minecraft.block.AbstractBlock
    • getFluidState

      public net.minecraft.fluid.FluidState getFluidState(net.minecraft.block.BlockState state)
      Overrides:
      getFluidState in class net.minecraft.block.AbstractBlock
    • rotate

      public net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state, net.minecraft.util.BlockRotation rotation)
      Overrides:
      rotate in class net.minecraft.block.AbstractBlock
    • mirror

      public net.minecraft.block.BlockState mirror(net.minecraft.block.BlockState state, net.minecraft.util.BlockMirror mirror)
      Overrides:
      mirror in class net.minecraft.block.AbstractBlock
    • canPlaceAt

      public boolean canPlaceAt(net.minecraft.block.BlockState state, net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos)
      Overrides:
      canPlaceAt in class net.minecraft.block.AbstractBlock
    • getOutlineShape

      public net.minecraft.util.shape.VoxelShape getOutlineShape(net.minecraft.block.BlockState state, net.minecraft.world.BlockView world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.ShapeContext context)
      Overrides:
      getOutlineShape in class net.minecraft.block.AbstractBlock
    • getPlacementState

      @Nullable public @Nullable net.minecraft.block.BlockState getPlacementState(net.minecraft.item.ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class net.minecraft.block.Block
    • appendProperties

      protected void appendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
      Overrides:
      appendProperties in class net.minecraft.block.Block
    • registerClient

      public void registerClient()
      Description copied from interface: Registered.Client
      Registers this value on the client environment.

      The contained code will only ever run on the game client. If you only want the server or want both, see its sister interfaces.

      Specified by:
      registerClient in interface Registered.Client
      See Also:
    • generate

      public void generate()
      Description copied from interface: Registered.Generated
      Generates game assets or data.

      It should be assumed that the contained code will only ever run on the server environment.

      Specified by:
      generate in interface Registered.Generated
      Overrides:
      generate in class DyedAmethystBlock