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.BlockStatePairKey

    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

    Fields
    Modifier and Type
    Field
    Description
    static final double
     
    static final double
     
    static final int
     
    static final int
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     
    protected static final net.minecraft.world.phys.shapes.VoxelShape
     

    Fields inherited from class net.minecraft.world.level.block.RotatedPillarBlock

    AXIS

    Fields 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_DROPS

    Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    HollowedLogBlock(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    static @NotNull net.frozenblock.lib.item.api.axe.AxeBehaviors.AxeBehavior
    createHollowBehavior(@NotNull net.minecraft.world.level.block.Block result, boolean isStem)
     
    @NotNull net.minecraft.world.phys.shapes.VoxelShape
    getCollisionShape(@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.FluidState
    getFluidState(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    @NotNull net.minecraft.world.phys.shapes.VoxelShape
    getInteractionShape(@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.VoxelShape
    getShape(@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.BlockState
    getStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext ctx)
     
    static void
    hollowEffects(@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)
     
    boolean
    propagatesSkylightDown(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter level, @NotNull net.minecraft.core.BlockPos pos)
     
    static void
    registerAxeHollowBehavior(net.minecraft.world.level.block.Block logBlock, net.minecraft.world.level.block.Block hollowedLogBlock)
     
    static void
    registerAxeHollowBehaviorStem(net.minecraft.world.level.block.Block logBlock, net.minecraft.world.level.block.Block hollowedLogBlock)
     
    @NotNull net.minecraft.world.level.block.state.BlockState
    updateShape(@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.InteractionResult
    use(@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)
     
    boolean
    useShapeForLightOcclusion(@NotNull net.minecraft.world.level.block.state.BlockState state)
     

    Methods inherited from class net.minecraft.world.level.block.RotatedPillarBlock

    rotate, rotatePillar

    Methods 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, withPropertiesOf

    Methods 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, updateIndirectNeighbourShapes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods 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:
      use in class net.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:
      getShape in class net.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:
      getCollisionShape in class net.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:
      getInteractionShape in class net.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:
      getStateForPlacement in class net.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:
      updateShape in class net.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:
      getFluidState in class net.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:
      createBlockStateDefinition in class net.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:
      propagatesSkylightDown in class net.minecraft.world.level.block.Block
    • useShapeForLightOcclusion

      public boolean useShapeForLightOcclusion(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      useShapeForLightOcclusion in class net.minecraft.world.level.block.state.BlockBehaviour