net.minecraft.world

public class ExperimentalRedstoneController

extends RedstoneController

net.minecraft.world.level.redstone.ExperimentalRedstoneWireEvaluator
net.minecraft.world.level.redstone.ExperimentalRedstoneWireEvaluator
net.minecraft.class_9903
net.minecraft.world.ExperimentalRedstoneController

Field summary

Modifier and TypeField
private final Deque<BlockPos>
wiresToTurnOff
wiresToTurnOff
field_52665
powerIncreaseQueue
private final Deque<BlockPos>
wiresToTurnOn
wiresToTurnOn
field_52666
powerDecreaseQueue
private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockPos>
updatedWires
updatedWires
field_52667
wireOrientationsAndPowers

Constructor summary

ModifierConstructor
public (RedstoneWireBlock wireBlock)

Method summary

Modifier and TypeMethod
public void
updatePowerStrength(Level level, BlockPos initialPos, BlockState ignored, Orientation orientation, boolean shapeUpdateWiresAroundInitialPosition)
updatePowerStrength(Level level, BlockPos initialPos, BlockState ignored, Orientation orientation, boolean shapeUpdateWiresAroundInitialPosition)
method_61824(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_9904 arg3, boolean arg4)
update(World arg0, BlockPos arg1, BlockState arg2, WireOrientation arg3, boolean arg4)
private void
causeNeighborUpdates(Level level)
causeNeighborUpdates(Level level)
method_61829(class_1937 arg0)
update(World world)
private static boolean
isConnected(BlockState state, Direction direction)
isConnected(BlockState state, Direction direction)
method_61834(class_2680 arg0, class_2350 arg1)
canProvidePowerTo(BlockState wireState, Direction direction)
private static WireOrientation
getInitialOrientation(Level level, Orientation incomingOrigination)
getInitialOrientation(Level level, Orientation incomingOrigination)
method_61830(class_1937 arg0, class_9904 arg1)
tweakOrientation(World world, WireOrientation orientation)
private void
calculateCurrentChanges(Level level, BlockPos initialPosition, Orientation initialOrientation)
calculateCurrentChanges(Level level, BlockPos initialPosition, Orientation initialOrientation)
method_61832(class_1937 arg0, class_2338 arg1, class_9904 arg2)
propagatePowerUpdates(World world, BlockPos pos, WireOrientation orientation)
private static int
packOrientationAndPower(Orientation orientation, int power)
packOrientationAndPower(Orientation orientation, int power)
method_61835(class_9904 arg0, int arg1)
packOrientationAndPower(WireOrientation orientation, int power)
private static WireOrientation
unpackOrientation(int packed)
unpackOrientation(int packed)
method_61828(int arg0)
unpackOrientation(int packed)
private static int
unpackPower(int packed)
unpackPower(int packed)
method_61840(int arg0)
unpackPower(int packed)
private void
setPower(BlockPos pos, int newPower, Orientation orientation)
setPower(BlockPos pos, int newPower, Orientation orientation)
method_61838(class_2338 arg0, int arg1, class_9904 arg2)
updatePowerAt(BlockPos pos, int power, WireOrientation defaultOrientation)
private void
propagateChangeToNeighbors(Level level, BlockPos pos, int newPower, Orientation orientation, boolean allowTurningOff)
propagateChangeToNeighbors(Level level, BlockPos pos, int newPower, Orientation orientation, boolean allowTurningOff)
method_61831(class_1937 arg0, class_2338 arg1, int arg2, class_9904 arg3, boolean arg4)
spreadPowerUpdateToNeighbors(World world, BlockPos pos, int power, WireOrientation orientation, boolean canIncreasePower)
private void
enqueueNeighborWire(Level level, BlockPos pos, int newFromPower, Orientation orientation, boolean allowTurningOff)
enqueueNeighborWire(Level level, BlockPos pos, int newFromPower, Orientation orientation, boolean allowTurningOff)
method_61841(class_1937 arg0, class_2338 arg1, int arg2, class_9904 arg3, boolean arg4)
spreadPowerUpdateTo(World world, BlockPos neighborPos, int power, WireOrientation orientation, boolean canIncreasePower)
protected int
getWireSignal(BlockPos pos, BlockState state)
getWireSignal(BlockPos pos, BlockState state)
method_61839(class_2338 arg0, class_2680 arg1)
getWirePowerAt(BlockPos arg0, BlockState arg1)