Class AstralWallBlock

java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.WallBlock
dev.jaxydog.astral.content.block.AstralWallBlock
All Implemented Interfaces:
BlockConvertible, Custom, Registered, Registered.Common, net.fabricmc.fabric.api.block.v1.FabricBlock, net.minecraft.block.FluidDrainable, net.minecraft.block.FluidFillable, net.minecraft.block.Waterloggable, net.minecraft.item.ItemConvertible, net.minecraft.resource.featuretoggle.ToggleableFeature

public class AstralWallBlock extends net.minecraft.block.WallBlock implements Custom
An extension of a WallBlock that provides commonly used functionality.

This is one of the various instances of already-provided wrapper classes for commonly used types.

In future code, you should prefer to extend this class over WallBlock if at all possible.

This type is automatically registered.

Since:
2.3.0
See Also:
  • 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 inherited from class net.minecraft.block.WallBlock

    EAST_SHAPE, NORTH_SHAPE, SOUTH_SHAPE, UP, WATERLOGGED, WEST_SHAPE

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

    Modifier and Type
    Method
    Description
    net.minecraft.block.Block
    Returns this value's block representation.
    Returns this value's associated registry identifier path.

    Methods inherited from class net.minecraft.block.WallBlock

    appendProperties, canPathfindThrough, getCollisionShape, getFluidState, getOutlineShape, getPlacementState, getStateForNeighborUpdate, isTransparent, mirror, rotate

    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, 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, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, 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, onProjectileHit, 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

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

    isEnabled

    Methods inherited from interface net.minecraft.block.Waterloggable

    canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
  • Constructor Details

    • AstralWallBlock

      public AstralWallBlock(String path, net.minecraft.block.AbstractBlock.Settings settings)
      Creates a new wall block using the given settings.
      Parameters:
      path - The block's identifier path.
      settings - The block's settings.
      Since:
      2.3.0
  • Method Details

    • asBlock

      public net.minecraft.block.Block asBlock()
      Description copied from interface: BlockConvertible
      Returns this value's block representation.
      Specified by:
      asBlock in interface BlockConvertible
      Overrides:
      asBlock in class net.minecraft.block.Block
      Returns:
      This value as a block.
    • getRegistryPath

      public String getRegistryPath()
      Description copied from interface: Registered
      Returns this value's associated registry identifier path.

      This is by default used to determine the Identifier provided by Registered.getRegistryId(). For example, returning "my_item" will cause the associated identifier to be astral:my_item.

      Specified by:
      getRegistryPath in interface Registered
      Returns:
      An identifier path.