Class DyedAmethystClusterBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
dev.jaxydog.astral.content.block.AstralBlock
dev.jaxydog.astral.content.block.custom.DyedAmethystBlock
dev.jaxydog.astral.content.block.custom.DyedAmethystClusterBlock
- 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
Defines dyed amethyst cluster blocks.
- Since:
- 2.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA variant of an amethyst cluster block.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>Nested classes/interfaces inherited from interface dev.jaxydog.astral.register.Registered
Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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.DirectionPropertyControls 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.BooleanPropertyControls 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_MAPPERFields 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, 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
ConstructorsConstructorDescriptionDyedAmethystClusterBlock(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 TypeMethodDescriptionprotected voidappendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block, net.minecraft.block.BlockState> builder) booleancanPlaceAt(net.minecraft.block.BlockState state, net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos) voidgenerate()Generates game assets or data.net.minecraft.fluid.FluidStategetFluidState(net.minecraft.block.BlockState state) net.minecraft.util.shape.VoxelShapegetOutlineShape(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.BlockStategetPlacementState(net.minecraft.item.ItemPlacementContext ctx) net.minecraft.block.BlockStategetStateForNeighborUpdate(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) getType()Returns the amethyst cluster type of this instance.net.minecraft.block.BlockStatemirror(net.minecraft.block.BlockState state, net.minecraft.util.BlockMirror mirror) voidRegisters this value on the client environment.net.minecraft.block.BlockStaterotate(net.minecraft.block.BlockState state, net.minecraft.util.BlockRotation rotation) Methods inherited from class dev.jaxydog.astral.content.block.custom.DyedAmethystBlock
getColor, onProjectileHitMethods inherited from class dev.jaxydog.astral.content.block.AstralBlock
asBlock, getRegistryPathMethods 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, toStringMethods 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, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.jaxydog.astral.content.block.Custom
registerCommonMethods inherited from interface net.fabricmc.fabric.api.block.v1.FabricBlock
getAppearanceMethods inherited from interface dev.jaxydog.astral.register.Registered
getRegistryId, getRegistryPathMethods 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_CLUSTERSA 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_BUDSA 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_BUDSA 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_BUDSA 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_ITEMSAn 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_ITEMSAn 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_ITEMSAn 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_ITEMSAn item tag containing all small amethyst buds.- Since:
- 2.0.0
-
WATERLOGGED
public static final net.minecraft.state.property.BooleanProperty WATERLOGGEDControls whether the block is waterlogged.- Since:
- 2.0.0
-
FACING
public static final net.minecraft.state.property.DirectionProperty FACINGControls 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:
getStateForNeighborUpdatein classnet.minecraft.block.AbstractBlock
-
getFluidState
public net.minecraft.fluid.FluidState getFluidState(net.minecraft.block.BlockState state) - Overrides:
getFluidStatein classnet.minecraft.block.AbstractBlock
-
rotate
public net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state, net.minecraft.util.BlockRotation rotation) - Overrides:
rotatein classnet.minecraft.block.AbstractBlock
-
mirror
public net.minecraft.block.BlockState mirror(net.minecraft.block.BlockState state, net.minecraft.util.BlockMirror mirror) - Overrides:
mirrorin classnet.minecraft.block.AbstractBlock
-
canPlaceAt
public boolean canPlaceAt(net.minecraft.block.BlockState state, net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos) - Overrides:
canPlaceAtin classnet.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:
getOutlineShapein classnet.minecraft.block.AbstractBlock
-
getPlacementState
@Nullable public @Nullable net.minecraft.block.BlockState getPlacementState(net.minecraft.item.ItemPlacementContext ctx) - Overrides:
getPlacementStatein classnet.minecraft.block.Block
-
appendProperties
protected void appendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block, net.minecraft.block.BlockState> builder) - Overrides:
appendPropertiesin classnet.minecraft.block.Block
-
registerClient
public void registerClient()Description copied from interface:Registered.ClientRegisters 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:
registerClientin interfaceRegistered.Client- See Also:
-
generate
public void generate()Description copied from interface:Registered.GeneratedGenerates game assets or data.It should be assumed that the contained code will only ever run on the server environment.
- Specified by:
generatein interfaceRegistered.Generated- Overrides:
generatein classDyedAmethystBlock
-