Class DyedAmethystBlock

java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
dev.jaxydog.astral.content.block.AstralBlock
dev.jaxydog.astral.content.block.custom.DyedAmethystBlock
All Implemented Interfaces:
BlockConvertible, Custom, Registered, Registered.Common, Registered.Generated, net.fabricmc.fabric.api.block.v1.FabricBlock, net.minecraft.item.ItemConvertible, net.minecraft.resource.featuretoggle.ToggleableFeature
Direct Known Subclasses:
DyedAmethystClusterBlock, DyedBuddingAmethystBlock

public class DyedAmethystBlock extends AstralBlock implements Registered.Generated
Defines dyed amethyst blocks.
Since:
2.0.0
  • Nested Class Summary

    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 blocks.
    static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block>
    A block tag containing all amethyst blocks.
    static final SoundContext
    The amethyst block's chime sound.
    static final SoundContext
    The amethyst block's hit sound.
    static final ImageBiMapper<net.minecraft.util.DyeColor>
    The color mapper used within the mod's data generator.

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

    Modifier and Type
    Method
    Description
    void
    Generates game assets or data.
    net.minecraft.util.DyeColor
    Returns this block's dye color.
    void
    onProjectileHit(net.minecraft.world.World world, net.minecraft.block.BlockState state, net.minecraft.util.hit.BlockHitResult hit, net.minecraft.entity.projectile.ProjectileEntity projectile)
     

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

    asBlock, getRegistryPath

    Methods inherited from class net.minecraft.block.Block

    afterBreak, appendProperties, appendTooltip, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, 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, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, 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_BLOCKS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.block.Block> AMETHYST_BLOCKS
      A block tag containing all amethyst blocks.
      Since:
      2.0.0
    • AMETHYST_BLOCK_ITEMS

      public static final net.minecraft.registry.tag.TagKey<net.minecraft.item.Item> AMETHYST_BLOCK_ITEMS
      An item tag containing all amethyst blocks.
      Since:
      2.0.0
    • BLOCK_CHIME_SOUND

      public static final SoundContext BLOCK_CHIME_SOUND
      The amethyst block's chime sound.
      Since:
      2.0.0
    • BLOCK_HIT_SOUND

      public static final SoundContext BLOCK_HIT_SOUND
      The amethyst block's hit sound.
      Since:
      2.0.0
    • DYE_MAPPER

      public static final ImageBiMapper<net.minecraft.util.DyeColor> DYE_MAPPER
      The color mapper used within the mod's data generator.
      Since:
      2.0.0
  • Constructor Details

    • DyedAmethystBlock

      public DyedAmethystBlock(String path, net.minecraft.block.AbstractBlock.Settings settings, net.minecraft.util.DyeColor color)
      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

    • getColor

      public net.minecraft.util.DyeColor getColor()
      Returns this block's dye color.
      Returns:
      The associated color.
      Since:
      2.0.0
    • onProjectileHit

      public void onProjectileHit(net.minecraft.world.World world, net.minecraft.block.BlockState state, net.minecraft.util.hit.BlockHitResult hit, net.minecraft.entity.projectile.ProjectileEntity projectile)
      Overrides:
      onProjectileHit in class net.minecraft.block.AbstractBlock
    • 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