Package net.minecraft.block
Class RedstoneWireBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.RedstoneWireBlock
- All Implemented Interfaces:
ItemConvertible
- Mappings:
Namespace Name official cic
intermediary net/minecraft/class_2457
named net/minecraft/block/RedstoneWireBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Vec3d[]
static final Map<Direction,
EnumProperty<WireConnection>> private static final VoxelShape
private final BlockState
private static final Map<Direction,
VoxelShape> private static final Map<Direction,
VoxelShape> private static final float
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
static final IntProperty
private static final Map<BlockState,
VoxelShape> static final EnumProperty<WireConnection>
static final EnumProperty<WireConnection>
static final EnumProperty<WireConnection>
static final EnumProperty<WireConnection>
private boolean
Fields 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, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addPoweredParticles
(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3) protected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) boolean
canPlaceAt
(BlockState state, WorldView world, BlockPos pos) private boolean
canRunOnTop
(BlockView world, BlockPos pos, BlockState floor) protected static boolean
connectsTo
(BlockState state) protected static boolean
connectsTo
(BlockState state, @Nullable Direction dir) boolean
emitsRedstonePower
(BlockState state) getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private BlockState
getPlacementState
(BlockView world, BlockState state, BlockPos pos) private int
getReceivedRedstonePower
(World world, BlockPos pos) private WireConnection
getRenderConnectionType
(BlockView world, BlockPos pos, Direction direction) private WireConnection
getRenderConnectionType
(BlockView world, BlockPos pos, Direction direction, boolean bool) private VoxelShape
getShapeForState
(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.int
getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) static int
getWireColor
(int powerLevel) private int
increasePower
(BlockState state) private static boolean
isFullyConnected
(BlockState state) private static boolean
isNotConnected
(BlockState state) private BlockState
method_27843
(BlockView world, BlockState state, BlockPos pos) mirror
(BlockState state, BlockMirror mirror) void
neighborUpdate
(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify) void
onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) void
onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)
ifnewState
is different fromstate
.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.void
prepare
(BlockState state, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth) void
randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) rotate
(BlockState state, BlockRotation rotation) Applies a block rotation to a block state.private void
update
(World world, BlockPos pos, BlockState state) private void
updateForNewState
(World world, BlockPos pos, BlockState oldState, BlockState newState) private void
updateNeighbors
(World world, BlockPos pos) private void
updateOffsetNeighbors
(World world, BlockPos pos) Methods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, 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, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getVerticalModelOffsetMultiplier, hasComparatorOutput, hasSidedTransparency, isShapeFullCube, isSideInvisible, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onSyncedBlockEvent, randomTick, scheduledTick
-
Field Details
-
WIRE_CONNECTION_NORTH
- Mappings:
Namespace Name Mixin selector official a
Lcic;a:Lcou;
intermediary field_11440
Lnet/minecraft/class_2457;field_11440:Lnet/minecraft/class_2754;
named WIRE_CONNECTION_NORTH
Lnet/minecraft/block/RedstoneWireBlock;WIRE_CONNECTION_NORTH:Lnet/minecraft/state/property/EnumProperty;
-
WIRE_CONNECTION_EAST
- Mappings:
Namespace Name Mixin selector official b
Lcic;b:Lcou;
intermediary field_11436
Lnet/minecraft/class_2457;field_11436:Lnet/minecraft/class_2754;
named WIRE_CONNECTION_EAST
Lnet/minecraft/block/RedstoneWireBlock;WIRE_CONNECTION_EAST:Lnet/minecraft/state/property/EnumProperty;
-
WIRE_CONNECTION_SOUTH
- Mappings:
Namespace Name Mixin selector official c
Lcic;c:Lcou;
intermediary field_11437
Lnet/minecraft/class_2457;field_11437:Lnet/minecraft/class_2754;
named WIRE_CONNECTION_SOUTH
Lnet/minecraft/block/RedstoneWireBlock;WIRE_CONNECTION_SOUTH:Lnet/minecraft/state/property/EnumProperty;
-
WIRE_CONNECTION_WEST
- Mappings:
Namespace Name Mixin selector official d
Lcic;d:Lcou;
intermediary field_11439
Lnet/minecraft/class_2457;field_11439:Lnet/minecraft/class_2754;
named WIRE_CONNECTION_WEST
Lnet/minecraft/block/RedstoneWireBlock;WIRE_CONNECTION_WEST:Lnet/minecraft/state/property/EnumProperty;
-
POWER
- Mappings:
Namespace Name Mixin selector official e
Lcic;e:Lcow;
intermediary field_11432
Lnet/minecraft/class_2457;field_11432:Lnet/minecraft/class_2758;
named POWER
Lnet/minecraft/block/RedstoneWireBlock;POWER:Lnet/minecraft/state/property/IntProperty;
-
DIRECTION_TO_WIRE_CONNECTION_PROPERTY
public static final Map<Direction,EnumProperty<WireConnection>> DIRECTION_TO_WIRE_CONNECTION_PROPERTY- Mappings:
Namespace Name Mixin selector official f
Lcic;f:Ljava/util/Map;
intermediary field_11435
Lnet/minecraft/class_2457;field_11435:Ljava/util/Map;
named DIRECTION_TO_WIRE_CONNECTION_PROPERTY
Lnet/minecraft/block/RedstoneWireBlock;DIRECTION_TO_WIRE_CONNECTION_PROPERTY:Ljava/util/Map;
-
field_31222
protected static final int field_31222- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lcic;g:I
intermediary field_31222
Lnet/minecraft/class_2457;field_31222:I
named field_31222
Lnet/minecraft/block/RedstoneWireBlock;field_31222:I
-
field_31223
protected static final int field_31223- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lcic;h:I
intermediary field_31223
Lnet/minecraft/class_2457;field_31223:I
named field_31223
Lnet/minecraft/block/RedstoneWireBlock;field_31223:I
-
field_31224
protected static final int field_31224- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lcic;i:I
intermediary field_31224
Lnet/minecraft/class_2457;field_31224:I
named field_31224
Lnet/minecraft/block/RedstoneWireBlock;field_31224:I
-
field_31225
protected static final int field_31225- See Also:
- Mappings:
Namespace Name Mixin selector official j
Lcic;j:I
intermediary field_31225
Lnet/minecraft/class_2457;field_31225:I
named field_31225
Lnet/minecraft/block/RedstoneWireBlock;field_31225:I
-
field_31226
protected static final int field_31226- See Also:
- Mappings:
Namespace Name Mixin selector official k
Lcic;k:I
intermediary field_31226
Lnet/minecraft/class_2457;field_31226:I
named field_31226
Lnet/minecraft/block/RedstoneWireBlock;field_31226:I
-
DOT_SHAPE
- Mappings:
Namespace Name Mixin selector official l
Lcic;l:Ldos;
intermediary field_24413
Lnet/minecraft/class_2457;field_24413:Lnet/minecraft/class_265;
named DOT_SHAPE
Lnet/minecraft/block/RedstoneWireBlock;DOT_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
field_24414
- Mappings:
Namespace Name Mixin selector official m
Lcic;m:Ljava/util/Map;
intermediary field_24414
Lnet/minecraft/class_2457;field_24414:Ljava/util/Map;
named field_24414
Lnet/minecraft/block/RedstoneWireBlock;field_24414:Ljava/util/Map;
-
field_24415
- Mappings:
Namespace Name Mixin selector official n
Lcic;n:Ljava/util/Map;
intermediary field_24415
Lnet/minecraft/class_2457;field_24415:Ljava/util/Map;
named field_24415
Lnet/minecraft/block/RedstoneWireBlock;field_24415:Ljava/util/Map;
-
SHAPES
- Mappings:
Namespace Name Mixin selector official F
Lcic;F:Ljava/util/Map;
intermediary field_24416
Lnet/minecraft/class_2457;field_24416:Ljava/util/Map;
named SHAPES
Lnet/minecraft/block/RedstoneWireBlock;SHAPES:Ljava/util/Map;
-
COLORS
- Mappings:
Namespace Name Mixin selector official G
Lcic;G:[Ldnz;
intermediary field_24466
Lnet/minecraft/class_2457;field_24466:[Lnet/minecraft/class_243;
named COLORS
Lnet/minecraft/block/RedstoneWireBlock;COLORS:[Lnet/minecraft/util/math/Vec3d;
-
field_31221
private static final float field_31221- See Also:
- Mappings:
Namespace Name Mixin selector official H
Lcic;H:F
intermediary field_31221
Lnet/minecraft/class_2457;field_31221:F
named field_31221
Lnet/minecraft/block/RedstoneWireBlock;field_31221:F
-
dotState
- Mappings:
Namespace Name Mixin selector official I
Lcic;I:Lcnv;
intermediary field_24733
Lnet/minecraft/class_2457;field_24733:Lnet/minecraft/class_2680;
named dotState
Lnet/minecraft/block/RedstoneWireBlock;dotState:Lnet/minecraft/block/BlockState;
-
wiresGivePower
private boolean wiresGivePower- Mappings:
Namespace Name Mixin selector official J
Lcic;J:Z
intermediary field_11438
Lnet/minecraft/class_2457;field_11438:Z
named wiresGivePower
Lnet/minecraft/block/RedstoneWireBlock;wiresGivePower:Z
-
-
Constructor Details
-
RedstoneWireBlock
- Mappings:
Namespace Name Mixin selector official <init>
Lcnu;<init>(Lcnu$c;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
named <init>
Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getShapeForState
- Mappings:
Namespace Name Mixin selector official n
Lcic;n(Lcnv;)Ldos;
intermediary method_27845
Lnet/minecraft/class_2457;method_27845(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;
named getShapeForState
Lnet/minecraft/block/RedstoneWireBlock;getShapeForState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShape
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzc;Lgh;Ldoe;)Ldos;
intermediary method_9530
Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
named getOutlineShape
Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
getPlacementState
- Overrides:
getPlacementState
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lbvx;)Lcnv;
intermediary method_9605
Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
named getPlacementState
Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
getPlacementState
- Mappings:
Namespace Name Mixin selector official a
Lcic;a(Lbzc;Lcnv;Lgh;)Lcnv;
intermediary method_27840
Lnet/minecraft/class_2457;method_27840(Lnet/minecraft/class_1922;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named getPlacementState
Lnet/minecraft/block/RedstoneWireBlock;getPlacementState(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
method_27843
- Mappings:
Namespace Name Mixin selector official b
Lcic;b(Lbzc;Lcnv;Lgh;)Lcnv;
intermediary method_27843
Lnet/minecraft/class_2457;method_27843(Lnet/minecraft/class_1922;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named method_27843
Lnet/minecraft/block/RedstoneWireBlock;method_27843(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)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:
getStateForNeighborUpdate
in 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 a
Lcnu;a(Lcnv;Lgm;Lcnv;Lbzx;Lgh;Lgh;)Lcnv;
intermediary method_9559
Lnet/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 getStateForNeighborUpdate
Lnet/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;
-
isFullyConnected
- Mappings:
Namespace Name Mixin selector official o
Lcic;o(Lcnv;)Z
intermediary method_27846
Lnet/minecraft/class_2457;method_27846(Lnet/minecraft/class_2680;)Z
named isFullyConnected
Lnet/minecraft/block/RedstoneWireBlock;isFullyConnected(Lnet/minecraft/block/BlockState;)Z
-
isNotConnected
- Mappings:
Namespace Name Mixin selector official p
Lcic;p(Lcnv;)Z
intermediary method_28483
Lnet/minecraft/class_2457;method_28483(Lnet/minecraft/class_2680;)Z
named isNotConnected
Lnet/minecraft/block/RedstoneWireBlock;isNotConnected(Lnet/minecraft/block/BlockState;)Z
-
prepare
public void prepare(BlockState state, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth) - Overrides:
prepare
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzx;Lgh;II)V
intermediary method_9517
Lnet/minecraft/class_4970;method_9517(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;II)V
named prepare
Lnet/minecraft/block/AbstractBlock;prepare(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;II)V
-
getRenderConnectionType
- Mappings:
Namespace Name Mixin selector official a
Lcic;a(Lbzc;Lgh;Lgm;)Lcpb;
intermediary method_10477
Lnet/minecraft/class_2457;method_10477(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Lnet/minecraft/class_2773;
named getRenderConnectionType
Lnet/minecraft/block/RedstoneWireBlock;getRenderConnectionType(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/enums/WireConnection;
-
getRenderConnectionType
private WireConnection getRenderConnectionType(BlockView world, BlockPos pos, Direction direction, boolean bool) - Mappings:
Namespace Name Mixin selector official a
Lcic;a(Lbzc;Lgh;Lgm;Z)Lcpb;
intermediary method_27841
Lnet/minecraft/class_2457;method_27841(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Z)Lnet/minecraft/class_2773;
named getRenderConnectionType
Lnet/minecraft/block/RedstoneWireBlock;getRenderConnectionType(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Z)Lnet/minecraft/block/enums/WireConnection;
-
canPlaceAt
- Overrides:
canPlaceAt
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzz;Lgh;)Z
intermediary method_9558
Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
named canPlaceAt
Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
canRunOnTop
- Mappings:
Namespace Name Mixin selector official b
Lcic;b(Lbzc;Lgh;Lcnv;)Z
intermediary method_27937
Lnet/minecraft/class_2457;method_27937(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
named canRunOnTop
Lnet/minecraft/block/RedstoneWireBlock;canRunOnTop(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
update
- Mappings:
Namespace Name Mixin selector official a
Lcic;a(Lbzw;Lgh;Lcnv;)V
intermediary method_10485
Lnet/minecraft/class_2457;method_10485(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named update
Lnet/minecraft/block/RedstoneWireBlock;update(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
getReceivedRedstonePower
- Mappings:
Namespace Name Mixin selector official a
Lcic;a(Lbzw;Lgh;)I
intermediary method_27842
Lnet/minecraft/class_2457;method_27842(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
named getReceivedRedstonePower
Lnet/minecraft/block/RedstoneWireBlock;getReceivedRedstonePower(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
increasePower
- Mappings:
Namespace Name Mixin selector official q
Lcic;q(Lcnv;)I
intermediary method_10486
Lnet/minecraft/class_2457;method_10486(Lnet/minecraft/class_2680;)I
named increasePower
Lnet/minecraft/block/RedstoneWireBlock;increasePower(Lnet/minecraft/block/BlockState;)I
-
updateNeighbors
- Mappings:
Namespace Name Mixin selector official b
Lcic;b(Lbzw;Lgh;)V
intermediary method_10479
Lnet/minecraft/class_2457;method_10479(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
named updateNeighbors
Lnet/minecraft/block/RedstoneWireBlock;updateNeighbors(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) - Overrides:
onBlockAdded
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lcnu;b(Lcnv;Lbzw;Lgh;Lcnv;Z)V
intermediary method_9615
Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
named onBlockAdded
Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
onStateReplaced
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)
ifnewState
is different fromstate
. Vanilla blocks perform removal cleanups here.- Overrides:
onStateReplaced
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzw;Lgh;Lcnv;Z)V
intermediary method_9536
Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
named onStateReplaced
Lnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
updateOffsetNeighbors
- Mappings:
Namespace Name Mixin selector official c
Lcic;c(Lbzw;Lgh;)V
intermediary method_27844
Lnet/minecraft/class_2457;method_27844(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
named updateOffsetNeighbors
Lnet/minecraft/block/RedstoneWireBlock;updateOffsetNeighbors(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
neighborUpdate
public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify) - Overrides:
neighborUpdate
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzw;Lgh;Lccr;Lgh;Z)V
intermediary method_9612
Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)V
named neighborUpdate
Lnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
-
getStrongRedstonePower
public int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) - Overrides:
getStrongRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lcnu;b(Lcnv;Lbzc;Lgh;Lgm;)I
intermediary method_9603
Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
named getStrongRedstonePower
Lnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
getWeakRedstonePower
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) - Overrides:
getWeakRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzc;Lgh;Lgm;)I
intermediary method_9524
Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
named getWeakRedstonePower
Lnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
connectsTo
- Mappings:
Namespace Name Mixin selector official h
Lcic;h(Lcnv;)Z
intermediary method_10484
Lnet/minecraft/class_2457;method_10484(Lnet/minecraft/class_2680;)Z
named connectsTo
Lnet/minecraft/block/RedstoneWireBlock;connectsTo(Lnet/minecraft/block/BlockState;)Z
-
connectsTo
- Mappings:
Namespace Name Mixin selector official a
Lcic;a(Lcnv;Lgm;)Z
intermediary method_10482
Lnet/minecraft/class_2457;method_10482(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Z
named connectsTo
Lnet/minecraft/block/RedstoneWireBlock;connectsTo(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
-
emitsRedstonePower
- Overrides:
emitsRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official f_
Lcnu;f_(Lcnv;)Z
intermediary method_9506
Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Z
named emitsRedstonePower
Lnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-
getWireColor
public static int getWireColor(int powerLevel) - Mappings:
Namespace Name Mixin selector official b
Lcic;b(I)I
intermediary method_10487
Lnet/minecraft/class_2457;method_10487(I)I
named getWireColor
Lnet/minecraft/block/RedstoneWireBlock;getWireColor(I)I
-
addPoweredParticles
private void addPoweredParticles(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3) - Mappings:
Namespace Name Mixin selector official a
Lcic;a(Lbzw;Ljava/util/Random;Lgh;Ldnz;Lgm;Lgm;FF)V
intermediary method_27936
Lnet/minecraft/class_2457;method_27936(Lnet/minecraft/class_1937;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_243;Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;FF)V
named addPoweredParticles
Lnet/minecraft/block/RedstoneWireBlock;addPoweredParticles(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;FF)V
-
randomDisplayTick
- Overrides:
randomDisplayTick
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lcnv;Lbzw;Lgh;Ljava/util/Random;)V
intermediary method_9496
Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)V
named randomDisplayTick
Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
rotate
Applies a block rotation to a block state.By default, this returns the provided block state.
- Overrides:
rotate
in classAbstractBlock
- Returns:
- the rotated block state
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lcin;)Lcnv;
intermediary method_9598
Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
named rotate
Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
mirror
- Overrides:
mirror
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lcha;)Lcnv;
intermediary method_9569
Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
named mirror
Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
-
appendProperties
- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccr;a(Lcnw$a;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
named appendProperties
Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
onUse
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player. This, by default, is bound to using the right mouse button.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
world.isClient()
.If the action result is successful on a logical client, then the action will be sent to the logical server for processing.
- Overrides:
onUse
in classAbstractBlock
- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official a
Lcnu;a(Lcnv;Lbzw;Lgh;Lbnk;Lavi;Ldnv;)Lavj;
intermediary method_9534
Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
named onUse
Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
-
updateForNewState
- Mappings:
Namespace Name Mixin selector official a
Lcic;a(Lbzw;Lgh;Lcnv;Lcnv;)V
intermediary method_28482
Lnet/minecraft/class_2457;method_28482(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)V
named updateForNewState
Lnet/minecraft/block/RedstoneWireBlock;updateForNewState(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)V
-