Package net.minecraft.block
Class LightningRodBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.FacingBlock
net.minecraft.block.RodBlock
net.minecraft.block.LightningRodBlock
- All Implemented Interfaces:
FluidDrainable,FluidFillable,Waterloggable,ItemConvertible
- Mappings:
Namespace Name official ccyintermediary net/minecraft/class_5554named net/minecraft/block/LightningRodBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intprivate static intstatic BooleanPropertystatic BooleanPropertyFields inherited from class net.minecraft.block.RodBlock
field_31233, field_31234, X_SHAPE, Y_SHAPE, Z_SHAPEFields inherited from class net.minecraft.block.FacingBlock
FACINGFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, LOGGER, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block,BlockState> builder)booleanemitsRedstonePower(BlockState state)getFluidState(BlockState state)getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)Gets the possibly updated block state of this block when a neighboring block is updated.intgetStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)intgetWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)static doublemethod_35282(Random random, Direction.Axis axis, double double2, Direction.Axis axis2)voidonProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)voidonStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)ifnewStateis different fromstate.voidrandomDisplayTick(BlockState state, World world, BlockPos pos, Random random)voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)voidsetPowered(BlockState state, World world, BlockPos pos)private voidupdateNeighbors(BlockState state, World world, BlockPos pos)Methods inherited from class net.minecraft.block.RodBlock
canPathfindThrough, getOutlineShape, mirror, rotateMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
WATERLOGGED
- Mappings:
Namespace Name Mixin selector official bLccy;b:Lcko;intermediary field_29562Lnet/minecraft/class_5554;field_29562:Lnet/minecraft/class_2746;named WATERLOGGEDLnet/minecraft/block/LightningRodBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;
-
POWERED
- Mappings:
Namespace Name Mixin selector official cLccy;c:Lcko;intermediary field_27193Lnet/minecraft/class_5554;field_27193:Lnet/minecraft/class_2746;named POWEREDLnet/minecraft/block/LightningRodBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
-
field_31192
private static final int field_31192- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official kLccy;k:Iintermediary field_31192Lnet/minecraft/class_5554;field_31192:Inamed field_31192Lnet/minecraft/block/LightningRodBlock;field_31192:I
-
field_31190
public static final int field_31190- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official dLccy;d:Iintermediary field_31190Lnet/minecraft/class_5554;field_31190:Inamed field_31190Lnet/minecraft/block/LightningRodBlock;field_31190:I
-
field_31191
public static final int field_31191- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official eLccy;e:Iintermediary field_31191Lnet/minecraft/class_5554;field_31191:Inamed field_31191Lnet/minecraft/block/LightningRodBlock;field_31191:I
-
-
Constructor Details
-
LightningRodBlock
- Mappings:
Namespace Name Mixin selector official <init>Lcjw;<init>(Lcjw$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getPlacementState
- Overrides:
getPlacementStatein classBlock- Mappings:
Namespace Name Mixin selector official aLbyw;a(Lbrx;)Lcjx;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)Gets the possibly updated block state of this block when a neighboring block is updated.- Overrides:
getStateForNeighborUpdatein classAbstractBlock- Parameters:
state- the state of this blockdirection- the direction from this block to the neighborneighborState- the state of the updated neighbor blockworld- the worldpos- the position of this blockneighborPos- the position of the neighbor block- Returns:
- the new state of this block
- Mappings:
Namespace Name Mixin selector official aLcjw;a(Lcjx;Lgg;Lcjx;Lbvy;Lgb;Lgb;)Lcjx;intermediary method_9559Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getStateForNeighborUpdateLnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getFluidState
- Overrides:
getFluidStatein classAbstractBlock- Mappings:
Namespace Name Mixin selector official c_Lcjw;c_(Lcjx;)Lddt;intermediary method_9545Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
-
getWeakRedstonePower
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)- Overrides:
getWeakRedstonePowerin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjw;a(Lcjx;Lbvb;Lgb;Lgg;)Iintermediary method_9524Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getWeakRedstonePowerLnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
getStrongRedstonePower
public int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)- Overrides:
getStrongRedstonePowerin classAbstractBlock- Mappings:
Namespace Name Mixin selector official bLcjw;b(Lcjx;Lbvb;Lgb;Lgg;)Iintermediary method_9603Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getStrongRedstonePowerLnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
setPowered
- Mappings:
Namespace Name Mixin selector official dLccy;d(Lcjx;Lbvx;Lgb;)Vintermediary method_31648Lnet/minecraft/class_5554;method_31648(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed setPoweredLnet/minecraft/block/LightningRodBlock;setPowered(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
updateNeighbors
- Mappings:
Namespace Name Mixin selector official eLccy;e(Lcjx;Lbvx;Lgb;)Vintermediary method_33627Lnet/minecraft/class_5554;method_33627(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed updateNeighborsLnet/minecraft/block/LightningRodBlock;updateNeighbors(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock- Mappings:
Namespace Name Mixin selector official a_Lcjw;a_(Lcjx;Labj;Lgb;Ljava/util/Random;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
randomDisplayTick
- Overrides:
randomDisplayTickin classBlock- Mappings:
Namespace Name Mixin selector official aLbyw;a(Lcjx;Lbvx;Lgb;Ljava/util/Random;)Vintermediary method_9496Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
method_35282
public static double method_35282(Random random, Direction.Axis axis, double double2, Direction.Axis axis2)- Mappings:
Namespace Name Mixin selector official aLccy;a(Ljava/util/Random;Lgg$a;DLgg$a;)Dintermediary method_35282Lnet/minecraft/class_5554;method_35282(Ljava/util/Random;Lnet/minecraft/class_2350$class_2351;DLnet/minecraft/class_2350$class_2351;)Dnamed method_35282Lnet/minecraft/block/LightningRodBlock;method_35282(Ljava/util/Random;Lnet/minecraft/util/math/Direction$Axis;DLnet/minecraft/util/math/Direction$Axis;)D
-
onStateReplaced
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)ifnewStateis different fromstate. Vanilla blocks perform removal cleanups here.- Overrides:
onStateReplacedin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjw;a(Lcjx;Lbvx;Lgb;Lcjx;Z)Vintermediary method_9536Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onStateReplacedLnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
onProjectileHit
public void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)- Overrides:
onProjectileHitin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjw;a(Lbvx;Lcjx;Ldlx;Lbkb;)Vintermediary method_19286Lnet/minecraft/class_4970;method_19286(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_3965;Lnet/minecraft/class_1676;)Vnamed onProjectileHitLnet/minecraft/block/AbstractBlock;onProjectileHit(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/hit/BlockHitResult;Lnet/minecraft/entity/projectile/ProjectileEntity;)V
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLbyw;a(Lcjy$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
emitsRedstonePower
- Overrides:
emitsRedstonePowerin classAbstractBlock- Mappings:
Namespace Name Mixin selector official e_Lcjw;e_(Lcjx;)Zintermediary method_9506Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Znamed emitsRedstonePowerLnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-