Class LogSlabBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.SlabBlock
dev.jaxydog.astral.content.block.AstralSlabBlock
dev.jaxydog.astral.content.block.custom.LogSlabBlock
- All Implemented Interfaces:
BlockConvertible,Custom,Registered,Registered.Common,Registered.Generated,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
The log slab block.
- Since:
- 2.2.0
-
Nested Class Summary
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.state.property.EnumProperty<net.minecraft.util.math.Direction.Axis> The block's axis property.Fields inherited from class dev.jaxydog.astral.content.block.AstralSlabBlock
HORIZONTAL_MODEL, HORIZONTAL_MODEL_TOP, SIDE_0, SIDE_1, VERTICAL_MODEL, VERTICAL_MODEL_TOPFields inherited from class net.minecraft.block.SlabBlock
BOTTOM_SHAPE, TOP_SHAPE, TYPE, WATERLOGGEDFields 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
ConstructorsConstructorDescriptionLogSlabBlock(String path, net.minecraft.block.Block base, net.minecraft.block.AbstractBlock.Settings settings) Creates a new log slab block using given settings. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block, net.minecraft.block.BlockState> builder) voidgenerate()Generates game assets or data.net.minecraft.block.BlockReturns this slab block's base block.@Nullable net.minecraft.block.BlockStategetPlacementState(net.minecraft.item.ItemPlacementContext ctx) net.minecraft.block.BlockStaterotate(net.minecraft.block.BlockState state, net.minecraft.util.BlockRotation rotation) Methods inherited from class dev.jaxydog.astral.content.block.AstralSlabBlock
asBlock, getRegistryPath, hasSidedTransparencyMethods inherited from class net.minecraft.block.SlabBlock
canFillWithFluid, canPathfindThrough, canReplace, getFluidState, getOutlineShape, getStateForNeighborUpdate, tryFillWithFluidMethods 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, canPlaceAt, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, 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
isEnabledMethods inherited from interface net.minecraft.block.Waterloggable
getBucketFillSound, tryDrainFluid
-
Field Details
-
AXIS
public static final net.minecraft.state.property.EnumProperty<net.minecraft.util.math.Direction.Axis> AXISThe block's axis property.- Since:
- 2.2.0
-
-
Constructor Details
-
LogSlabBlock
public LogSlabBlock(String path, net.minecraft.block.Block base, net.minecraft.block.AbstractBlock.Settings settings) Creates a new log slab block using given settings.- Parameters:
path- The slab block's identifier path.base- The slab block's base block.settings- the slab block's settings.- Since:
- 2.2.0
-
-
Method Details
-
getBaseBlock
public net.minecraft.block.Block getBaseBlock()Returns this slab block's base block.- Returns:
- This slab block's base block.
- Since:
- 2.2.0
-
appendProperties
protected void appendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block, net.minecraft.block.BlockState> builder) - Overrides:
appendPropertiesin classnet.minecraft.block.SlabBlock
-
getPlacementState
@Nullable public @Nullable net.minecraft.block.BlockState getPlacementState(net.minecraft.item.ItemPlacementContext ctx) - Overrides:
getPlacementStatein classnet.minecraft.block.SlabBlock
-
rotate
public net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state, net.minecraft.util.BlockRotation rotation) - Overrides:
rotatein classnet.minecraft.block.AbstractBlock
-
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
-