Class RadioAntennaBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
me.alexdevs.classicPeripherals.peripherals.radio.AbstractRadioBlock
me.alexdevs.classicPeripherals.peripherals.radio.antenna.RadioAntennaBlock
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.block.BucketPickup,net.minecraft.world.level.block.EntityBlock,net.minecraft.world.level.block.LiquidBlockContainer,net.minecraft.world.level.block.SimpleWaterloggedBlock,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IBlockExtension,net.neoforged.neoforge.common.extensions.IBucketPickupExtension
public class RadioAntennaBlock
extends AbstractRadioBlock
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 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
ConstructorsConstructorDescriptionRadioAntennaBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.BaseEntityBlock> codec()protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) @NotNull net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.world.level.block.state.BlockState state) @NotNull net.minecraft.world.phys.shapes.VoxelShapegetShape(@NonNull net.minecraft.world.level.block.state.BlockState state, @NonNull net.minecraft.world.level.BlockGetter level, @NonNull net.minecraft.core.BlockPos pos, @NonNull net.minecraft.world.phys.shapes.CollisionContext context) @Nullable net.minecraft.world.level.block.state.BlockStategetStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext placement) <T extends net.minecraft.world.level.block.entity.BlockEntity>
@Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(net.minecraft.world.level.Level level, @NonNull net.minecraft.world.level.block.state.BlockState state, @NonNull net.minecraft.world.level.block.entity.BlockEntityType<T> blockEntityType) @Nullable net.minecraft.world.level.block.entity.BlockEntitynewBlockEntity(@NonNull net.minecraft.core.BlockPos blockPos, @NonNull net.minecraft.world.level.block.state.BlockState blockState) voidonPlace(@NonNull net.minecraft.world.level.block.state.BlockState blockState, @NonNull net.minecraft.world.level.Level level, @NonNull net.minecraft.core.BlockPos blockPos, @NonNull net.minecraft.world.level.block.state.BlockState blockState2, boolean bl) voidonRemove(@NonNull net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level level, @NonNull net.minecraft.core.BlockPos blockPos, @NonNull net.minecraft.world.level.block.state.BlockState blockState2, boolean bl) voidtick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, @NonNull net.minecraft.core.BlockPos pos, @NonNull net.minecraft.util.RandomSource random) @NotNull net.minecraft.world.level.block.state.BlockStateupdateShape(net.minecraft.world.level.block.state.BlockState state, @NonNull net.minecraft.core.Direction side, @NonNull net.minecraft.world.level.block.state.BlockState otherState, @NonNull net.minecraft.world.level.LevelAccessor world, @NonNull net.minecraft.core.BlockPos pos, @NonNull net.minecraft.core.BlockPos otherPos) Methods inherited from class me.alexdevs.classicPeripherals.peripherals.radio.AbstractRadioBlock
getRenderShapeMethods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, getMenuProvider, triggerEventMethods 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, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, 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, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListenerMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, ignitedByLava, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHidingMethods inherited from interface net.neoforged.neoforge.common.extensions.IBucketPickupExtension
getPickupSoundMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
Field Details
-
ACTIVE
public static final net.minecraft.world.level.block.state.properties.BooleanProperty ACTIVE -
WATERLOGGED
public static final net.minecraft.world.level.block.state.properties.BooleanProperty WATERLOGGED
-
-
Constructor Details
-
RadioAntennaBlock
public RadioAntennaBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
-
-
Method Details
-
codec
protected @NonNull com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.BaseEntityBlock> codec()- Specified by:
codecin classnet.minecraft.world.level.block.BaseEntityBlock
-
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> builder) - Overrides:
createBlockStateDefinitionin classnet.minecraft.world.level.block.Block
-
newBlockEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(@NonNull net.minecraft.core.BlockPos blockPos, @NonNull net.minecraft.world.level.block.state.BlockState blockState) - Specified by:
newBlockEntityin interfacenet.minecraft.world.level.block.EntityBlock
-
onPlace
public void onPlace(@NonNull net.minecraft.world.level.block.state.BlockState blockState, @NonNull net.minecraft.world.level.Level level, @NonNull net.minecraft.core.BlockPos blockPos, @NonNull net.minecraft.world.level.block.state.BlockState blockState2, boolean bl) - Overrides:
onPlacein classAbstractRadioBlock
-
onRemove
public void onRemove(@NonNull net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level level, @NonNull net.minecraft.core.BlockPos blockPos, @NonNull net.minecraft.world.level.block.state.BlockState blockState2, boolean bl) - Overrides:
onRemovein classAbstractRadioBlock
-
tick
public void tick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, @NonNull net.minecraft.core.BlockPos pos, @NonNull net.minecraft.util.RandomSource random) - Overrides:
tickin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getShape
@NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getShape(@NonNull net.minecraft.world.level.block.state.BlockState state, @NonNull net.minecraft.world.level.BlockGetter level, @NonNull net.minecraft.core.BlockPos pos, @NonNull net.minecraft.world.phys.shapes.CollisionContext context) - Overrides:
getShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getFluidState
@NotNull public @NotNull net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.world.level.block.state.BlockState state) - Overrides:
getFluidStatein classnet.minecraft.world.level.block.state.BlockBehaviour
-
updateShape
@NotNull public @NotNull net.minecraft.world.level.block.state.BlockState updateShape(net.minecraft.world.level.block.state.BlockState state, @NonNull net.minecraft.core.Direction side, @NonNull net.minecraft.world.level.block.state.BlockState otherState, @NonNull net.minecraft.world.level.LevelAccessor world, @NonNull net.minecraft.core.BlockPos pos, @NonNull 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 placement) - Overrides:
getStateForPlacementin classnet.minecraft.world.level.block.Block
-
getTicker
@Nullable public <T extends net.minecraft.world.level.block.entity.BlockEntity> @Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(net.minecraft.world.level.Level level, @NonNull net.minecraft.world.level.block.state.BlockState state, @NonNull net.minecraft.world.level.block.entity.BlockEntityType<T> blockEntityType) - Specified by:
getTickerin interfacenet.minecraft.world.level.block.EntityBlock
-