net.minecraft.world

public class ExperimentalRedstoneController

extends RedstoneController

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

Field summary

Modifier and TypeField
private final Deque<BlockPos>
wiresToTurnOff
field_52665
powerIncreaseQueue
private final Deque<BlockPos>
wiresToTurnOn
field_52666
powerDecreaseQueue
private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockPos>
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)
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)
method_61829(class_1937 arg0)
update(World world)
private static boolean
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)
method_61830(class_1937 arg0, class_9904 arg1)
tweakOrientation(World world, WireOrientation orientation)
private void
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)
method_61835(class_9904 arg0, int arg1)
packOrientationAndPower(WireOrientation orientation, int power)
private static WireOrientation
unpackOrientation(int packed)
method_61828(int arg0)
unpackOrientation(int packed)
private static int
unpackPower(int packed)
method_61840(int arg0)
unpackPower(int packed)
private void
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)
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)
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)
method_61839(class_2338 arg0, class_2680 arg1)
getWirePowerAt(BlockPos arg0, BlockState arg1)
private static Integer
lambda$setPower$0(Orientation arg0, int arg1, BlockPos arg2, Integer arg3)
method_61836(class_9904 arg0, int arg1, class_2338 arg2, Integer arg3)
method_61836(WireOrientation arg0, int arg1, BlockPos pos2, Integer orientationAndPower)
private static void
lambda$causeNeighborUpdates$1(ServerLevel arg0, BlockPos arg1, int arg2)
method_61837(class_3218 arg0, class_2338 arg1, int arg2)
method_61837(ServerWorld arg0, BlockPos pos, int power)
private void
lambda$causeNeighborUpdates$0(Level arg0, BlockPos arg1, int arg2)
method_61833(class_1937 arg0, class_2338 arg1, int arg2)
method_61833(World arg0, BlockPos pos, int orientationAndPower)