java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
com.codinglitch.simpleradio.core.registry.blocks.AntennaBlock
All Implemented Interfaces:
net.fabricmc.fabric.api.block.v1.FabricBlock, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike

public class AntennaBlock extends net.minecraft.world.level.block.Block
  • 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 extends Object>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.EnumProperty<net.minecraft.core.Direction.Axis>
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     

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

    BLOCK_STATE_REGISTRY, CODEC, 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
    AntennaBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader reader, net.minecraft.core.BlockPos pos)
     
    int
    climbAntenna(net.minecraft.core.BlockPos pos, net.minecraft.world.level.LevelAccessor accessor)
     
    void
    climbAxis(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.LevelAccessor accessor, AtomicInteger score, int distance, List<net.minecraft.core.BlockPos> navigated)
     
    void
    climbColumn(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.world.level.LevelAccessor accessor, AtomicInteger score, int distance, List<net.minecraft.core.BlockPos> navigated)
     
    void
    climbRow(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction direction, net.minecraft.world.level.LevelAccessor accessor, AtomicInteger score, int distance, List<net.minecraft.core.BlockPos> navigated)
     
    oshi.util.tuples.Pair<Integer,Boolean>
    crawlAntenna(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor accessor)
     
    int
    crawlAxis(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.LevelAccessor accessor, int distance)
     
    oshi.util.tuples.Pair<Integer,Boolean>
    crawlColumn(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.world.level.LevelAccessor accessor, int distance)
     
    int
    crawlRow(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction direction, net.minecraft.world.level.LevelAccessor accessor, int distance)
     
    protected void
    createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> stateBuilder)
     
    void
    destroy(net.minecraft.world.level.LevelAccessor accessor, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    net.minecraft.world.phys.shapes.VoxelShape
    getShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter getter, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context)
     
    @Nullable net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context)
     
    void
    iterateDirection(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.world.level.LevelAccessor accessor, net.minecraft.core.Direction direction, Function<net.minecraft.world.level.block.state.BlockState,Boolean> iterator)
     
    void
    notifyExtension(net.minecraft.core.BlockPos pos, net.minecraft.world.level.LevelAccessor accessor)
     
    static void
     
    void
    onPlace(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState otherState, boolean b)
     
    void
    tick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource randomSource)
     
    net.minecraft.world.level.block.state.BlockState
    update(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor accessor, net.minecraft.core.Direction.Axis priority)
     
    net.minecraft.world.level.block.state.BlockState
    updateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.block.state.BlockState otherState, net.minecraft.world.level.LevelAccessor accessor, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos otherPos)
     

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

    animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, codec, defaultBlockState, 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, propagatesSkylightDown, 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, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onExplosionHit, onProjectileHit, onRemove, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.fabricmc.fabric.api.block.v1.FabricBlock

    getAppearance

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

    isEnabled
  • Field Details

    • UP

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty UP
    • DOWN

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty DOWN
    • UNSTABLE

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty UNSTABLE
    • ATTACHED

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty ATTACHED
    • COLUMN

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty COLUMN
    • AXIS

      public static final net.minecraft.world.level.block.state.properties.EnumProperty<net.minecraft.core.Direction.Axis> AXIS
  • Constructor Details

    • AntennaBlock

      public AntennaBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
  • Method Details

    • onLexiconRevision

      public static void onLexiconRevision()
    • createBlockStateDefinition

      protected void createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> stateBuilder)
      Overrides:
      createBlockStateDefinition in class net.minecraft.world.level.block.Block
    • getShape

      public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter getter, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context)
      Overrides:
      getShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • updateShape

      public net.minecraft.world.level.block.state.BlockState updateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.block.state.BlockState otherState, net.minecraft.world.level.LevelAccessor accessor, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos otherPos)
      Overrides:
      updateShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • getStateForPlacement

      @Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context)
      Overrides:
      getStateForPlacement in class net.minecraft.world.level.block.Block
    • onPlace

      public void onPlace(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState otherState, boolean b)
      Overrides:
      onPlace in class net.minecraft.world.level.block.state.BlockBehaviour
    • destroy

      public void destroy(net.minecraft.world.level.LevelAccessor accessor, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      destroy in class net.minecraft.world.level.block.Block
    • canSurvive

      public boolean canSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader reader, net.minecraft.core.BlockPos pos)
      Overrides:
      canSurvive in class net.minecraft.world.level.block.state.BlockBehaviour
    • tick

      public void tick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource randomSource)
      Overrides:
      tick in class net.minecraft.world.level.block.state.BlockBehaviour
    • update

      public net.minecraft.world.level.block.state.BlockState update(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor accessor, @Nullable net.minecraft.core.Direction.Axis priority)
    • crawlAntenna

      public oshi.util.tuples.Pair<Integer,Boolean> crawlAntenna(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor accessor)
    • climbAntenna

      public int climbAntenna(net.minecraft.core.BlockPos pos, net.minecraft.world.level.LevelAccessor accessor)
    • notifyExtension

      public void notifyExtension(net.minecraft.core.BlockPos pos, net.minecraft.world.level.LevelAccessor accessor)
    • climbAxis

      public void climbAxis(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.LevelAccessor accessor, AtomicInteger score, int distance, List<net.minecraft.core.BlockPos> navigated)
    • crawlAxis

      public int crawlAxis(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.LevelAccessor accessor, int distance)
    • climbRow

      public void climbRow(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction direction, net.minecraft.world.level.LevelAccessor accessor, AtomicInteger score, int distance, List<net.minecraft.core.BlockPos> navigated)
    • crawlRow

      public int crawlRow(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction direction, net.minecraft.world.level.LevelAccessor accessor, int distance)
    • climbColumn

      public void climbColumn(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.world.level.LevelAccessor accessor, AtomicInteger score, int distance, List<net.minecraft.core.BlockPos> navigated)
    • crawlColumn

      public oshi.util.tuples.Pair<Integer,Boolean> crawlColumn(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.world.level.LevelAccessor accessor, int distance)
    • iterateDirection

      public void iterateDirection(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.world.level.LevelAccessor accessor, net.minecraft.core.Direction direction, Function<net.minecraft.world.level.block.state.BlockState,Boolean> iterator)