Autoformat and organize imports.
This commit is contained in:
@@ -7,13 +7,13 @@ import li.cil.oc2.api.bus.device.object.Parameter;
|
||||
import li.cil.oc2.api.util.Side;
|
||||
import li.cil.oc2.common.Constants;
|
||||
import li.cil.oc2.common.util.HorizontalBlockUtils;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||
import net.minecraft.core.Direction;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.world.level.ChunkPos;
|
||||
import net.minecraft.core.Direction;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.util.Mth;
|
||||
import net.minecraft.world.level.ChunkPos;
|
||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Collection;
|
||||
@@ -117,27 +117,27 @@ public final class RedstoneInterfaceBlockEntity extends BlockEntity implements N
|
||||
@Override
|
||||
public void getDeviceDocumentation(final DeviceVisitor visitor) {
|
||||
visitor.visitCallback(GET_REDSTONE_INPUT)
|
||||
.description("Get the current redstone level received on the specified side. " +
|
||||
"Note that if the current output level on the specified side is not " +
|
||||
"zero, this will affect the measured level.\n" +
|
||||
"Sides may be specified by name or zero-based index. Please note that" +
|
||||
"the side depends on the orientation of the device.")
|
||||
.returnValueDescription("the current received level on the specified side.")
|
||||
.parameterDescription(SIDE, "the side to read the input level from.");
|
||||
.description("Get the current redstone level received on the specified side. " +
|
||||
"Note that if the current output level on the specified side is not " +
|
||||
"zero, this will affect the measured level.\n" +
|
||||
"Sides may be specified by name or zero-based index. Please note that" +
|
||||
"the side depends on the orientation of the device.")
|
||||
.returnValueDescription("the current received level on the specified side.")
|
||||
.parameterDescription(SIDE, "the side to read the input level from.");
|
||||
|
||||
visitor.visitCallback(GET_REDSTONE_OUTPUT)
|
||||
.description("Get the current redstone level transmitted on the specified side. " +
|
||||
"This will return the value last set via setRedstoneOutput().\n" +
|
||||
"Sides may be specified by name or zero-based index. Please note that" +
|
||||
"the side depends on the orientation of the device.")
|
||||
.returnValueDescription("the current transmitted level on the specified side.")
|
||||
.parameterDescription(SIDE, "the side to read the output level from.");
|
||||
.description("Get the current redstone level transmitted on the specified side. " +
|
||||
"This will return the value last set via setRedstoneOutput().\n" +
|
||||
"Sides may be specified by name or zero-based index. Please note that" +
|
||||
"the side depends on the orientation of the device.")
|
||||
.returnValueDescription("the current transmitted level on the specified side.")
|
||||
.parameterDescription(SIDE, "the side to read the output level from.");
|
||||
visitor.visitCallback(SET_REDSTONE_OUTPUT)
|
||||
.description("Set the new redstone level transmitted on the specified side.\n" +
|
||||
"Sides may be specified by name or zero-based index. Please note that" +
|
||||
"the side depends on the orientation of the device.")
|
||||
.parameterDescription(SIDE, "the side to write the output level to.")
|
||||
.parameterDescription(VALUE, "the output level to set, will be clamped to [0, 15].");
|
||||
.description("Set the new redstone level transmitted on the specified side.\n" +
|
||||
"Sides may be specified by name or zero-based index. Please note that" +
|
||||
"the side depends on the orientation of the device.")
|
||||
.parameterDescription(SIDE, "the side to write the output level to.")
|
||||
.parameterDescription(VALUE, "the output level to set, will be clamped to [0, 15].");
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user