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.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested 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 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_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
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 TypeMethodDescriptionprotected 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, @NotNull net.minecraft.world.level.BlockGetter level, @NotNull net.minecraft.core.BlockPos pos) 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) @NotNull net.minecraft.world.level.block.state.BlockStateupdateShape(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.core.Direction direction, @NotNull net.minecraft.world.level.block.state.BlockState neighborState, @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos currentPos, @NotNull net.minecraft.core.BlockPos neighborPos) @NotNull net.minecraft.world.InteractionResultuse(@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.InteractionHand hand, @NotNull net.minecraft.world.phys.BlockHitResult hit) booleanuseShapeForLightOcclusion(@NotNull net.minecraft.world.level.block.state.BlockState state) 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, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, randomTick, requiredFeatures, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapesMethods 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 -
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) -
use
@NotNull public @NotNull net.minecraft.world.InteractionResult use(@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.InteractionHand hand, @NotNull @NotNull net.minecraft.world.phys.BlockHitResult hit) - Overrides:
usein 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 public @NotNull net.minecraft.world.level.block.state.BlockState updateShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.core.Direction direction, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState neighborState, @NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos currentPos, @NotNull @NotNull net.minecraft.core.BlockPos neighborPos) - 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, @NotNull @NotNull net.minecraft.world.level.BlockGetter level, @NotNull @NotNull net.minecraft.core.BlockPos pos) - Overrides:
propagatesSkylightDownin classnet.minecraft.world.level.block.Block
-
useShapeForLightOcclusion
public boolean useShapeForLightOcclusion(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) - Overrides:
useShapeForLightOcclusionin classnet.minecraft.world.level.block.state.BlockBehaviour
-