net.minecraft.world.level.block

public class RedStoneWireBlock

extends Block

All mapped superinterfaces:

FeatureElement, ItemLike

dqq
net.minecraft.world.level.block.RedStoneWireBlock
net.minecraft.class_2457
net.minecraft.unmapped.C_hbdlqish
net.minecraft.block.RedstoneWireBlock
net.minecraft.block.RedstoneWireBlock
net.minecraft.src.C_1873_
net.minecraft.world.level.block.BlockRedstoneOre

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<RedStoneWireBlock>
a
CODEC
field_46422
f_psbskmvz
CODEC
CODEC
f_302936_
public static final EnumProperty<RedstoneSide>
b
NORTH
field_11440
f_isurntyc
WIRE_CONNECTION_NORTH
WIRE_CONNECTION_NORTH
f_55496_
public static final EnumProperty<RedstoneSide>
c
EAST
field_11436
f_qomovzle
WIRE_CONNECTION_EAST
WIRE_CONNECTION_EAST
f_55497_
public static final EnumProperty<RedstoneSide>
d
SOUTH
field_11437
f_fyjjmxtv
WIRE_CONNECTION_SOUTH
WIRE_CONNECTION_SOUTH
f_55498_
public static final EnumProperty<RedstoneSide>
e
WEST
field_11439
f_lhkdefum
WIRE_CONNECTION_WEST
WIRE_CONNECTION_WEST
f_55499_
public static final IntegerProperty
f
POWER
field_11432
f_bcvuxzmx
POWER
POWER
f_55500_
public static final Map<Direction, EnumProperty<RedstoneSide>>
g
PROPERTY_BY_DIRECTION
field_11435
f_jjwmffoj
DIRECTION_TO_WIRE_CONNECTION_PROPERTY
DIRECTION_TO_WIRE_CONNECTION_PROPERTY
f_55501_
protected static final int
h
H
field_31222
f_nakuehnf
field_31222
HEIGHT
f_154304_
protected static final int
i
W
field_31223
f_vvxqbtel
field_31223
WEST
f_154305_
protected static final int
j
E
field_31224
f_qflzlopt
field_31224
EAST
f_154306_
protected static final int
k
N
field_31225
f_arszcewt
field_31225
NORTH
f_154307_
protected static final int
l
S
field_31226
f_jbpgiwve
field_31226
SOUTH
f_154308_
private static final VoxelShape
m
SHAPE_DOT
field_24413
f_awrxoajc
DOT_SHAPE
DOT_SHAPE
f_55502_
private static final Map<Direction, VoxelShape>
n
SHAPES_FLOOR
field_24414
f_lsmbxxxx
DIRECTION_TO_SIDE_SHAPE
SHAPES_FLOOR
f_55503_
private static final Map<Direction, VoxelShape>
o
SHAPES_UP
field_24415
f_vvlqyglw
DIRECTION_TO_UP_SHAPE
SHAPES_UP
f_55504_
private static final Map<BlockState, VoxelShape>
G
SHAPES_CACHE
field_24416
f_tfkeexfj
SHAPES
SHAPES
f_55505_
private static final int[]
H
COLORS
field_24466
f_laswtpnf
COLORS
COLORS
f_55506_
private static final float
I
PARTICLE_DENSITY
field_31221
f_pwrhpusx
field_31221
PARTICLE_DENSITY
f_154303_
private final BlockState
J
crossState
field_24733
f_ooedtwdp
dotState
dotState
f_55507_
private final RedstoneWireEvaluator
K
evaluator
field_52632
f_qwcrdmpx
redstoneController
controller
f_346559_
private boolean
L
shouldSignal
field_11438
f_quuiddba
wiresGivePower
wiresGivePower
f_55508_

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<RedStoneWireBlock>
a()
codec()
method_53969()
m_wrnxumjr()
getCodec()
getCodec()
m_304657_()
private VoxelShape
q(dxu arg0)
calculateShape(BlockState arg0)
method_27845(class_2680 arg0)
m_ooefnwhn(C_txtbiemp arg0)
getShapeForState(BlockState state)
getShapeForState(BlockState state)
m_55642_(C_2064_ arg0)
protected VoxelShape
a(dxu arg0, dgm arg1, jh arg2, fcc arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
m_fqngyjtr(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_pbfjvesm arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
m_5940_(C_2064_ p_55621_, C_1559_ p_55622_, C_4675_ p_55623_, C_3051_ arg3)
public BlockState
a(dbf arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
m_iwedynhy(C_aiootljq arg0)
getPlacementState(ItemPlacementContext arg0)
getPlacementState(ItemPlacementContext arg0)
m_5573_(C_1445_ arg0)
private BlockState
a(dgm arg0, dxu arg1, jh arg2)
getConnectionState(BlockGetter arg0, BlockState arg1, BlockPos arg2)
method_27840(class_1922 arg0, class_2680 arg1, class_2338 arg2)
m_gqzevazu(C_peaveboq arg0, C_txtbiemp arg1, C_hynzadkk arg2)
getPlacementState(BlockView world, BlockState state, BlockPos pos)
getPlacementState(BlockView world, BlockState state, BlockPos pos)
m_55514_(C_1559_ p_55516_, C_2064_ p_55517_, C_4675_ arg2)
private BlockState
b(dgm arg0, dxu arg1, jh arg2)
getMissingConnections(BlockGetter arg0, BlockState arg1, BlockPos arg2)
method_27843(class_1922 arg0, class_2680 arg1, class_2338 arg2)
m_xhxffgip(C_peaveboq arg0, C_txtbiemp arg1, C_hynzadkk arg2)
getDefaultWireState(BlockView world, BlockState state, BlockPos pos)
getMissingConnections(BlockView world, BlockState state, BlockPos pos)
m_55608_(C_1559_ p_55610_, C_2064_ p_55611_, C_4675_ arg2)
protected BlockState
a(dxu arg0, dhk arg1, dhw arg2, jh arg3, jm arg4, jh arg5, dxu arg6, bam 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)
m_yvunqpeq(C_txtbiemp arg0, C_eemzphbi arg1, C_adoatlrf arg2, C_hynzadkk arg3, C_xpuuihxf arg4, C_hynzadkk arg5, C_txtbiemp arg6, C_rlomrsco arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, TickSchedulerAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomGenerator arg7)
m_7417_(C_2064_ p_364425_, C_1599_ p_364740_, C_346056_ p_55602_, C_4675_ p_55599_, C_4687_ p_55603_, C_4675_ p_55600_, C_2064_ p_363398_, C_212974_ arg7)
private static boolean
r(dxu arg0)
isCross(BlockState arg0)
method_27846(class_2680 arg0)
m_zwvxalpq(C_txtbiemp arg0)
isFullyConnected(BlockState state)
isFullyConnected(BlockState state)
m_55644_(C_2064_ p_55645_)
private static boolean
s(dxu arg0)
isDot(BlockState arg0)
method_28483(class_2680 arg0)
m_umyfwzyt(C_txtbiemp arg0)
isNotConnected(BlockState state)
isNotConnected(BlockState state)
m_55646_(C_2064_ p_55647_)
protected void
a(dxu arg0, dhi arg1, jh 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)
m_lcpckfxn(C_txtbiemp arg0, C_vdvbsyle arg1, C_hynzadkk arg2, int arg3, int arg4)
prepare(BlockState arg0, WorldAccess arg1, BlockPos arg2, int arg3, int arg4)
prepare(BlockState arg0, WorldAccess arg1, BlockPos arg2, int arg3, int arg4)
m_7742_(C_2064_ p_55580_, C_1598_ p_55581_, C_4675_ p_55582_, int p_55583_, int arg4)
private RedstoneSide
a(dgm arg0, jh arg1, jm arg2)
getConnectingSide(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_10477(class_1922 arg0, class_2338 arg1, class_2350 arg2)
m_ycqcmrlz(C_peaveboq arg0, C_hynzadkk arg1, C_xpuuihxf arg2)
getRenderConnectionType(BlockView world, BlockPos pos, Direction direction)
getRenderConnectionType(BlockView world, BlockPos pos, Direction direction)
m_55518_(C_1559_ p_55520_, C_4675_ p_55521_, C_4687_ arg2)
private RedstoneSide
a(dgm arg0, jh arg1, jm 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)
m_uvclsrei(C_peaveboq arg0, C_hynzadkk arg1, C_xpuuihxf arg2, boolean arg3)
getRenderConnectionType(BlockView world, BlockPos pos, Direction direction, boolean arg3)
getRenderConnectionType(BlockView world, BlockPos pos, Direction direction, boolean isNotSolidBlock)
m_55522_(C_1559_ p_55524_, C_4675_ p_55525_, C_4687_ p_55526_, boolean arg3)
protected boolean
a(dxu arg0, dhk arg1, jh arg2)
canSurvive(BlockState arg0, LevelReader arg1, BlockPos arg2)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
m_qixajhot(C_txtbiemp arg0, C_eemzphbi arg1, C_hynzadkk arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
m_7898_(C_2064_ p_55586_, C_1599_ p_55587_, C_4675_ arg2)
private boolean
a(dgm arg0, jh arg1, dxu arg2)
canSurviveOn(BlockGetter arg0, BlockPos arg1, BlockState arg2)
method_27937(class_1922 arg0, class_2338 arg1, class_2680 arg2)
m_tegvovkt(C_peaveboq arg0, C_hynzadkk arg1, C_txtbiemp arg2)
canRunOnTop(BlockView world, BlockPos pos, BlockState floor)
canRunOnTop(BlockView world, BlockPos pos, BlockState floor)
m_55612_(C_1559_ p_55614_, C_4675_ p_55615_, C_2064_ arg2)
private void
a(dhh arg0, jh arg1, dxu arg2, eve 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)
m_pqfwfeyi(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_ctatbkvy arg3, boolean arg4)
update(World world, BlockPos pos, BlockState state, WireOrientation orientation, boolean blockAdded)
update(World world, BlockPos pos, BlockState state, Orientation orientation, boolean updateConnections)
m_55530_(C_1596_ p_55532_, C_4675_ p_55533_, C_2064_ p_363629_, C_346043_ p_368749_, boolean arg4)
public int
a(dhh arg0, jh arg1)
getBlockSignal(Level arg0, BlockPos arg1)
method_61746(class_1937 arg0, class_2338 arg1)
m_djyzrhjp(C_cdctfzbn arg0, C_hynzadkk arg1)
getStrongPower(World world, BlockPos pos)
getStrongPower(World world, BlockPos pos)
m_352672_(C_1596_ p_368064_, C_4675_ arg1)
private void
b(dhh arg0, jh arg1)
checkCornerChangeAt(Level arg0, BlockPos arg1)
method_10479(class_1937 arg0, class_2338 arg1)
m_brufkqwu(C_cdctfzbn arg0, C_hynzadkk arg1)
updateNeighbors(World world, BlockPos pos)
updateNeighbors(World world, BlockPos pos)
m_55616_(C_1596_ p_55618_, C_4675_ arg1)
protected void
b(dxu arg0, dhh arg1, jh arg2, dxu 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)
m_cojbgxjy(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_txtbiemp arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
m_6807_(C_2064_ p_55631_, C_1596_ p_55632_, C_4675_ p_55633_, C_2064_ p_55634_, boolean arg4)
protected void
a(dxu arg0, dhh arg1, jh arg2, dxu 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)
m_rhbsxbgh(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_txtbiemp arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
m_6810_(C_2064_ p_55569_, C_1596_ p_55570_, C_4675_ p_55571_, C_2064_ p_55572_, boolean arg4)
private void
c(dhh arg0, jh arg1)
updateNeighborsOfNeighboringWires(Level arg0, BlockPos arg1)
method_27844(class_1937 arg0, class_2338 arg1)
m_nxtwfpnw(C_cdctfzbn arg0, C_hynzadkk arg1)
updateOffsetNeighbors(World world, BlockPos pos)
updateOffsetNeighbors(World world, BlockPos pos)
m_55637_(C_1596_ p_55639_, C_4675_ arg1)
protected void
a(dxu arg0, dhh arg1, jh arg2, dkl arg3, eve 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)
m_tmlkosuh(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_mmxmpdoq arg3, C_ctatbkvy arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, WireOrientation arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, Orientation arg4, boolean arg5)
m_6861_(C_2064_ p_55562_, C_1596_ p_55563_, C_4675_ p_55564_, C_1706_ p_369069_, C_346043_ p_55566_, boolean arg5)
private static boolean
a(dhh arg0)
useExperimentalEvaluator(Level arg0)
method_61745(class_1937 arg0)
m_ugolbtvn(C_cdctfzbn arg0)
areRedstoneExperimentsEnabled(World world)
hasExperiments(World world)
m_355366_(C_1596_ p_369145_)
protected int
b(dxu arg0, dgm arg1, jh arg2, jm arg3)
getDirectSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9603(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
m_ydisyayk(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_xpuuihxf arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
m_6376_(C_2064_ p_55626_, C_1559_ p_55627_, C_4675_ p_55628_, C_4687_ arg3)
protected int
a(dxu arg0, dgm arg1, jh arg2, jm arg3)
getSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
m_bhohbmwk(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_xpuuihxf arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
m_6378_(C_2064_ p_55550_, C_1559_ p_55551_, C_4675_ p_55552_, C_4687_ arg3)
protected static boolean
o(dxu arg0)
shouldConnectTo(BlockState arg0)
method_10484(class_2680 arg0)
m_fpgdlcmq(C_txtbiemp arg0)
connectsTo(BlockState state)
connectsTo(BlockState state)
m_55640_(C_2064_ p_55641_)
protected static boolean
a(dxu arg0, jm arg1)
shouldConnectTo(BlockState arg0, Direction arg1)
method_10482(class_2680 arg0, class_2350 arg1)
m_dbodizuz(C_txtbiemp arg0, C_xpuuihxf arg1)
connectsTo(BlockState state, Direction dir)
connectsTo(BlockState state, Direction dir)
m_55594_(C_2064_ p_55595_, C_4687_ p_55596_)
protected boolean
f_(dxu arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
m_fjkbizwn(C_txtbiemp arg0)
emitsRedstonePower(BlockState arg0)
isRedstonePowerSource(BlockState arg0)
m_7899_(C_2064_ arg0)
public static int
b(int arg0)
getColorForPower(int arg0)
method_10487(int arg0)
m_kofgxicj(int arg0)
getWireColor(int powerLevel)
getWireColor(int powerLevel)
m_55606_(int p_55607_)
private static void
a(dhh arg0, bam arg1, jh arg2, int arg3, jm arg4, jm 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)
m_nmxjtrcu(C_cdctfzbn arg0, C_rlomrsco arg1, C_hynzadkk arg2, int arg3, C_xpuuihxf arg4, C_xpuuihxf arg5, float arg6, float arg7)
addPoweredParticles(World world, Random random, BlockPos pos, int color, Direction perpendicular, Direction direction, float minOffset, float maxOffset)
addPoweredParticles(World world, RandomGenerator random, BlockPos pos, int color, Direction support, Direction connection, float offset, float randomFactor)
m_221922_(C_1596_ p_221923_, C_212974_ p_221924_, C_4675_ p_221925_, int p_363544_, C_4687_ p_221927_, C_4687_ p_221928_, float p_221929_, float p_221930_)
public void
a(dxu arg0, dhh arg1, jh arg2, bam arg3)
animateTick(BlockState arg0, Level arg1, BlockPos arg2, RandomSource arg3)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
m_qdvbqnpt(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_rlomrsco arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, RandomGenerator arg3)
m_214162_(C_2064_ p_221933_, C_1596_ p_221934_, C_4675_ p_221935_, C_212974_ arg3)
protected BlockState
a(dxu arg0, drb arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
m_umbsjste(C_txtbiemp arg0, C_mboglirk arg1)
rotate(BlockState arg0, BlockRotation arg1)
rotate(BlockState arg0, BlockRotation arg1)
m_6843_(C_2064_ p_55593_, C_1886_ arg1)
protected BlockState
a(dxu arg0, dpk arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
m_ssvaouey(C_txtbiemp arg0, C_qomzaqud arg1)
mirror(BlockState arg0, BlockMirror arg1)
mirror(BlockState arg0, BlockMirror arg1)
m_6943_(C_2064_ p_55590_, C_1838_ arg1)
protected void
a(dxv$a<dkl, dxu> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
m_yujtcnah(C_ezfeikaq$C_mfnsmxhw<C_mmxmpdoq, C_txtbiemp> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)
protected InteractionResult
a(dxu arg0, dhh arg1, jh arg2, cpw arg3, fbt 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)
m_pguoxmgn(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_jzrpycqo arg3, C_jdakttms arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
m_6227_(C_2064_ p_55555_, C_1596_ p_55556_, C_4675_ p_55557_, C_1141_ p_55559_, C_3041_ arg4)
private void
a(dhh arg0, jh arg1, dxu arg2, dxu arg3)
updatesOnShapeChange(Level arg0, BlockPos arg1, BlockState arg2, BlockState arg3)
method_28482(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2680 arg3)
m_jsaztxkb(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_txtbiemp arg3)
updateForNewState(World world, BlockPos pos, BlockState oldState, BlockState newState)
updateForNewState(World world, BlockPos pos, BlockState oldState, BlockState newState)
m_55534_(C_1596_ p_55536_, C_4675_ p_55537_, C_2064_ p_55538_, C_2064_ arg3)