net.minecraft.world.level.block

public class RedStoneWireBlock

extends Block

All mapped superinterfaces:

FeatureElement, ItemLike

dpu
net.minecraft.world.level.block.RedStoneWireBlock
net.minecraft.class_2457
net.minecraft.block.RedstoneWireBlock
net.minecraft.world.level.block.BlockRedstoneWire

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<RedStoneWireBlock>
a
CODEC
field_46422
CODEC
public static final EnumProperty<RedstoneSide>
b
NORTH
field_11440
WIRE_CONNECTION_NORTH
public static final EnumProperty<RedstoneSide>
c
EAST
field_11436
WIRE_CONNECTION_EAST
public static final EnumProperty<RedstoneSide>
d
SOUTH
field_11437
WIRE_CONNECTION_SOUTH
public static final EnumProperty<RedstoneSide>
e
WEST
field_11439
WIRE_CONNECTION_WEST
public static final IntegerProperty
f
POWER
field_11432
POWER
public static final Map<Direction, EnumProperty<RedstoneSide>>
g
PROPERTY_BY_DIRECTION
field_11435
DIRECTION_TO_WIRE_CONNECTION_PROPERTY
protected static final int
h
H
field_31222
field_31222
protected static final int
i
W
field_31223
field_31223
protected static final int
j
E
field_31224
field_31224
protected static final int
k
N
field_31225
field_31225
protected static final int
l
S
field_31226
field_31226
private static final VoxelShape
m
SHAPE_DOT
field_24413
DOT_SHAPE
private static final Map<Direction, VoxelShape>
n
SHAPES_FLOOR
field_24414
DIRECTION_TO_SIDE_SHAPE
private static final Map<Direction, VoxelShape>
o
SHAPES_UP
field_24415
DIRECTION_TO_UP_SHAPE
private static final Map<BlockState, VoxelShape>
G
SHAPES_CACHE
field_24416
SHAPES
private static final int[]
H
COLORS
field_24466
COLORS
private static final float
I
PARTICLE_DENSITY
field_31221
field_31221
private final BlockState
J
crossState
field_24733
dotState
private final RedstoneWireEvaluator
K
evaluator
field_52632
redstoneController
private boolean
L
shouldSignal
field_11438
wiresGivePower

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<RedStoneWireBlock>
a()
codec()
method_53969()
getCodec()
private VoxelShape
q(dwy arg0)
calculateShape(BlockState arg0)
method_27845(class_2680 arg0)
getShapeForState(BlockState state)
protected VoxelShape
a(dwy arg0, dfo arg1, ji arg2, fbg arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
public BlockState
a(dah arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
private BlockState
a(dfo arg0, dwy arg1, ji arg2)
getConnectionState(BlockGetter arg0, BlockState arg1, BlockPos arg2)
method_27840(class_1922 arg0, class_2680 arg1, class_2338 arg2)
getPlacementState(BlockView world, BlockState state, BlockPos pos)
private BlockState
b(dfo arg0, dwy arg1, ji arg2)
getMissingConnections(BlockGetter arg0, BlockState arg1, BlockPos arg2)
method_27843(class_1922 arg0, class_2680 arg1, class_2338 arg2)
getDefaultWireState(BlockView world, BlockState state, BlockPos pos)
protected BlockState
a(dwy arg0, dgm arg1, dgy arg2, ji arg3, jn arg4, ji arg5, dwy arg6, azh arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
private static boolean
r(dwy arg0)
isCross(BlockState arg0)
method_27846(class_2680 arg0)
isFullyConnected(BlockState state)
private static boolean
s(dwy arg0)
isDot(BlockState arg0)
method_28483(class_2680 arg0)
isNotConnected(BlockState state)
protected void
a(dwy arg0, dgk arg1, ji arg2, int arg3, int arg4)
updateIndirectNeighbourShapes(BlockState arg0, LevelAccessor arg1, BlockPos arg2, int arg3, int arg4)
method_9517(class_2680 arg0, class_1936 arg1, class_2338 arg2, int arg3, int arg4)
prepare(BlockState arg0, WorldAccess arg1, BlockPos arg2, int arg3, int arg4)
private RedstoneSide
a(dfo arg0, ji arg1, jn arg2)
getConnectingSide(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_10477(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getRenderConnectionType(BlockView world, BlockPos pos, Direction direction)
private RedstoneSide
a(dfo arg0, ji arg1, jn arg2, boolean arg3)
getConnectingSide(BlockGetter arg0, BlockPos arg1, Direction arg2, boolean arg3)
method_27841(class_1922 arg0, class_2338 arg1, class_2350 arg2, boolean arg3)
getRenderConnectionType(BlockView world, BlockPos pos, Direction direction, boolean arg3)
protected boolean
a(dwy arg0, dgm arg1, ji arg2)
canSurvive(BlockState arg0, LevelReader arg1, BlockPos arg2)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
private boolean
a(dfo arg0, ji arg1, dwy arg2)
canSurviveOn(BlockGetter arg0, BlockPos arg1, BlockState arg2)
method_27937(class_1922 arg0, class_2338 arg1, class_2680 arg2)
canRunOnTop(BlockView world, BlockPos pos, BlockState floor)
private void
a(dgj arg0, ji arg1, dwy arg2, eui arg3, boolean arg4)
updatePowerStrength(Level arg0, BlockPos arg1, BlockState arg2, Orientation arg3, boolean arg4)
method_10485(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_9904 arg3, boolean arg4)
update(World world, BlockPos pos, BlockState state, WireOrientation orientation, boolean blockAdded)
public int
a(dgj arg0, ji arg1)
getBlockSignal(Level arg0, BlockPos arg1)
method_61746(class_1937 arg0, class_2338 arg1)
getStrongPower(World world, BlockPos pos)
private void
b(dgj arg0, ji arg1)
checkCornerChangeAt(Level arg0, BlockPos arg1)
method_10479(class_1937 arg0, class_2338 arg1)
updateNeighbors(World world, BlockPos pos)
protected void
b(dwy arg0, dgj arg1, ji arg2, dwy arg3, boolean arg4)
onPlace(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
protected void
a(dwy arg0, dgj arg1, ji arg2, dwy arg3, boolean arg4)
onRemove(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9536(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
private void
c(dgj arg0, ji arg1)
updateNeighborsOfNeighboringWires(Level arg0, BlockPos arg1)
method_27844(class_1937 arg0, class_2338 arg1)
updateOffsetNeighbors(World world, BlockPos pos)
protected void
a(dwy arg0, dgj arg1, ji arg2, djn arg3, eui arg4, boolean arg5)
neighborChanged(BlockState arg0, Level arg1, BlockPos arg2, Block arg3, Orientation arg4, boolean arg5)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_9904 arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, WireOrientation arg4, boolean arg5)
private static boolean
a(dgj arg0)
useExperimentalEvaluator(Level arg0)
method_61745(class_1937 arg0)
areRedstoneExperimentsEnabled(World world)
protected int
b(dwy arg0, dfo arg1, ji arg2, jn arg3)
getDirectSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9603(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
protected int
a(dwy arg0, dfo arg1, ji arg2, jn arg3)
getSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
protected static boolean
o(dwy arg0)
shouldConnectTo(BlockState arg0)
method_10484(class_2680 arg0)
connectsTo(BlockState state)
protected static boolean
a(dwy arg0, jn arg1)
shouldConnectTo(BlockState arg0, Direction arg1)
method_10482(class_2680 arg0, class_2350 arg1)
connectsTo(BlockState state, Direction dir)
protected boolean
f_(dwy arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
public static int
b(int arg0)
getColorForPower(int arg0)
method_10487(int arg0)
getWireColor(int powerLevel)
private static void
a(dgj arg0, azh arg1, ji arg2, int arg3, jn arg4, jn arg5, float arg6, float arg7)
spawnParticlesAlongLine(Level arg0, RandomSource arg1, BlockPos arg2, int arg3, Direction arg4, Direction arg5, float arg6, float arg7)
method_27936(class_1937 arg0, class_5819 arg1, class_2338 arg2, int arg3, class_2350 arg4, class_2350 arg5, float arg6, float arg7)
addPoweredParticles(World world, Random random, BlockPos pos, int color, Direction perpendicular, Direction direction, float minOffset, float maxOffset)
public void
a(dwy arg0, dgj arg1, ji arg2, azh arg3)
animateTick(BlockState arg0, Level arg1, BlockPos arg2, RandomSource arg3)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
protected BlockState
a(dwy arg0, dqf arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
a(dwy arg0, dom arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
protected void
a(dwz$a<djn, dwy> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected InteractionResult
a(dwy arg0, dgj arg1, ji arg2, coy arg3, fax arg4)
useWithoutItem(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, BlockHitResult arg4)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
private void
a(dgj arg0, ji arg1, dwy arg2, dwy arg3)
updatesOnShapeChange(Level arg0, BlockPos arg1, BlockState arg2, BlockState arg3)
method_28482(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2680 arg3)
updateForNewState(World world, BlockPos pos, BlockState oldState, BlockState newState)