Package net.frozenblock.wilderwild.block
Class HollowedLogBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.RotatedPillarBlock
net.frozenblock.wilderwild.block.HollowedLogBlock
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.block.BucketPickup,net.minecraft.world.level.block.LiquidBlockContainer,net.minecraft.world.level.block.SimpleWaterloggedBlock,net.minecraft.world.level.ItemLike
public class HollowedLogBlock
extends net.minecraft.world.level.block.RotatedPillarBlock
implements net.minecraft.world.level.block.SimpleWaterloggedBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetFunction, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<HollowedLogBlock> static final doublestatic final doublestatic final intstatic final intprotected static final net.minecraft.world.phys.shapes.VoxelShapestatic final net.minecraft.world.level.block.state.properties.BooleanPropertyprotected static final net.minecraft.world.phys.shapes.VoxelShapeprotected static final net.minecraft.world.phys.shapes.VoxelShapeprotected static final net.minecraft.world.phys.shapes.VoxelShapeprotected static final net.minecraft.world.phys.shapes.VoxelShapeprotected static final net.minecraft.world.phys.shapes.VoxelShapeprotected static final net.minecraft.world.phys.shapes.VoxelShapeFields inherited from class net.minecraft.world.level.block.RotatedPillarBlock
AXISFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionHollowedLogBlock(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings) -
Method Summary
Modifier and TypeMethodDescription@NotNull com.mojang.serialization.MapCodec<? extends HollowedLogBlock> codec()protected voidcreateBlockStateDefinition(@NotNull net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) static @NotNull net.frozenblock.lib.item.api.axe.AxeBehaviors.AxeBehaviorcreateHollowBehavior(@NotNull net.minecraft.world.level.block.Block result, boolean isStem) @NotNull net.minecraft.world.phys.shapes.VoxelShapegetCollisionShape(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.phys.shapes.CollisionContext context) @NotNull net.minecraft.world.level.material.FluidStategetFluidState(@NotNull net.minecraft.world.level.block.state.BlockState state) @NotNull net.minecraft.world.phys.shapes.VoxelShapegetInteractionShape(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter level, @NotNull net.minecraft.core.BlockPos pos) @NotNull net.minecraft.world.phys.shapes.VoxelShapegetShape(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.phys.shapes.CollisionContext context) net.minecraft.world.level.block.state.BlockStategetStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext ctx) static voidhollowEffects(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.Direction face, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.core.BlockPos pos, boolean isStem) booleanpropagatesSkylightDown(@NotNull net.minecraft.world.level.block.state.BlockState state) static voidregisterAxeHollowBehavior(net.minecraft.world.level.block.Block logBlock, net.minecraft.world.level.block.Block hollowedLogBlock) static voidregisterAxeHollowBehaviorStem(net.minecraft.world.level.block.Block logBlock, net.minecraft.world.level.block.Block hollowedLogBlock) protected @NotNull net.minecraft.world.level.block.state.BlockStateupdateShape(@NotNull net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.LevelReader levelReader, net.minecraft.world.level.ScheduledTickAccess scheduledTickAccess, net.minecraft.core.BlockPos blockPos, net.minecraft.core.Direction direction, net.minecraft.core.BlockPos neighborPos, net.minecraft.world.level.block.state.BlockState neighborState, net.minecraft.util.RandomSource randomSource) booleanuseShapeForLightOcclusion(@NotNull net.minecraft.world.level.block.state.BlockState state) @NotNull net.minecraft.world.InteractionResultuseWithoutItem(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.phys.BlockHitResult hit) Methods inherited from class net.minecraft.world.level.block.RotatedPillarBlock
rotate, rotatePillarMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
Field Details
-
HOLLOW_PARTICLE_DIRECTION_OFFSET
public static final double HOLLOW_PARTICLE_DIRECTION_OFFSET- See Also:
-
HOLLOW_PARTICLES_MIN
public static final int HOLLOW_PARTICLES_MIN- See Also:
-
HOLLOW_PARTICLES_MAX
public static final int HOLLOW_PARTICLES_MAX- See Also:
-
ENTRANCE_DIRECTION_STEP_SCALE
public static final double ENTRANCE_DIRECTION_STEP_SCALE- See Also:
-
WATERLOGGED
public static final net.minecraft.world.level.block.state.properties.BooleanProperty WATERLOGGED -
CODEC
-
X_SHAPE
protected static final net.minecraft.world.phys.shapes.VoxelShape X_SHAPE -
Y_SHAPE
protected static final net.minecraft.world.phys.shapes.VoxelShape Y_SHAPE -
Z_SHAPE
protected static final net.minecraft.world.phys.shapes.VoxelShape Z_SHAPE -
X_COLLISION_SHAPE
protected static final net.minecraft.world.phys.shapes.VoxelShape X_COLLISION_SHAPE -
Y_COLLISION_SHAPE
protected static final net.minecraft.world.phys.shapes.VoxelShape Y_COLLISION_SHAPE -
Z_COLLISION_SHAPE
protected static final net.minecraft.world.phys.shapes.VoxelShape Z_COLLISION_SHAPE -
RAYCAST_SHAPE
protected static final net.minecraft.world.phys.shapes.VoxelShape RAYCAST_SHAPE
-
-
Constructor Details
-
HollowedLogBlock
public HollowedLogBlock(@NotNull @NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings)
-
-
Method Details
-
createHollowBehavior
@Contract(value="_, _ -> new", pure=true) public static @NotNull net.frozenblock.lib.item.api.axe.AxeBehaviors.AxeBehavior createHollowBehavior(@NotNull @NotNull net.minecraft.world.level.block.Block result, boolean isStem) -
registerAxeHollowBehavior
public static void registerAxeHollowBehavior(net.minecraft.world.level.block.Block logBlock, net.minecraft.world.level.block.Block hollowedLogBlock) -
registerAxeHollowBehaviorStem
public static void registerAxeHollowBehaviorStem(net.minecraft.world.level.block.Block logBlock, net.minecraft.world.level.block.Block hollowedLogBlock) -
hollowEffects
public static void hollowEffects(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.Direction face, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.core.BlockPos pos, boolean isStem) -
codec
- Overrides:
codecin classnet.minecraft.world.level.block.RotatedPillarBlock
-
useWithoutItem
@NotNull public @NotNull net.minecraft.world.InteractionResult useWithoutItem(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.phys.BlockHitResult hit) - Overrides:
useWithoutItemin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getShape
@NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.BlockGetter level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.phys.shapes.CollisionContext context) - Overrides:
getShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getCollisionShape
@NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getCollisionShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.BlockGetter level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.phys.shapes.CollisionContext context) - Overrides:
getCollisionShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getInteractionShape
@NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getInteractionShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.BlockGetter level, @NotNull @NotNull net.minecraft.core.BlockPos pos) - Overrides:
getInteractionShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getStateForPlacement
public net.minecraft.world.level.block.state.BlockState getStateForPlacement(@NotNull @NotNull net.minecraft.world.item.context.BlockPlaceContext ctx) - Overrides:
getStateForPlacementin classnet.minecraft.world.level.block.RotatedPillarBlock
-
updateShape
@NotNull protected @NotNull net.minecraft.world.level.block.state.BlockState updateShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.LevelReader levelReader, net.minecraft.world.level.ScheduledTickAccess scheduledTickAccess, net.minecraft.core.BlockPos blockPos, net.minecraft.core.Direction direction, net.minecraft.core.BlockPos neighborPos, net.minecraft.world.level.block.state.BlockState neighborState, net.minecraft.util.RandomSource randomSource) - Overrides:
updateShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getFluidState
@NotNull public @NotNull net.minecraft.world.level.material.FluidState getFluidState(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) - Overrides:
getFluidStatein classnet.minecraft.world.level.block.state.BlockBehaviour
-
createBlockStateDefinition
protected void createBlockStateDefinition(@NotNull net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) - Overrides:
createBlockStateDefinitionin classnet.minecraft.world.level.block.RotatedPillarBlock
-
propagatesSkylightDown
public boolean propagatesSkylightDown(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) - Overrides:
propagatesSkylightDownin classnet.minecraft.world.level.block.state.BlockBehaviour
-
useShapeForLightOcclusion
public boolean useShapeForLightOcclusion(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) - Overrides:
useShapeForLightOcclusionin classnet.minecraft.world.level.block.state.BlockBehaviour
-