Class AntennaBlock
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.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 extends Object>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.EnumProperty<net.minecraft.core.Direction.Axis>static final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.BooleanPropertyFields 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_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
ConstructorsConstructorDescriptionAntennaBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader reader, net.minecraft.core.BlockPos pos) intclimbAntenna(net.minecraft.core.BlockPos pos, net.minecraft.world.level.LevelAccessor accessor) voidclimbAxis(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) voidclimbColumn(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.world.level.LevelAccessor accessor, AtomicInteger score, int distance, List<net.minecraft.core.BlockPos> navigated) voidclimbRow(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) crawlAntenna(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor accessor) intcrawlAxis(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.LevelAccessor accessor, int distance) crawlColumn(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.world.level.LevelAccessor accessor, int distance) intcrawlRow(net.minecraft.core.BlockPos.MutableBlockPos currentPos, net.minecraft.core.Direction direction, net.minecraft.world.level.LevelAccessor accessor, int distance) protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> stateBuilder) voiddestroy(net.minecraft.world.level.LevelAccessor accessor, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.phys.shapes.VoxelShapegetShape(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.BlockStategetStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context) voiditerateDirection(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) voidnotifyExtension(net.minecraft.core.BlockPos pos, net.minecraft.world.level.LevelAccessor accessor) static voidvoidonPlace(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) voidtick(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.BlockStateupdate(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.BlockStateupdateShape(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, withPropertiesOfMethods 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, useShapeForLightOcclusionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.block.v1.FabricBlock
getAppearanceMethods 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:
createBlockStateDefinitionin classnet.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:
getShapein classnet.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:
updateShapein classnet.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:
getStateForPlacementin classnet.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:
onPlacein classnet.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:
destroyin classnet.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:
canSurvivein classnet.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:
tickin classnet.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
-
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
-
iterateDirection
-