Class ElevatorColumn
java.lang.Object
com.simibubi.create.content.contraptions.elevator.ElevatorColumn
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ElevatorColumn.ColumnCoordsprotected booleanprotected net.minecraft.world.level.LevelAccessorstatic net.createmod.catnip.data.WorldAttached<Map<ElevatorColumn.ColumnCoords, ElevatorColumn>> intprotected booleanprotected int -
Constructor Summary
ConstructorsConstructorDescriptionElevatorColumn(net.minecraft.world.level.LevelAccessor level, ElevatorColumn.ColumnCoords coords) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(net.minecraft.core.BlockPos contactPos) net.minecraft.core.BlockPoscontactAt(int y) voidfloorReached(net.minecraft.world.level.LevelAccessor level, String name) voidstatic @Nullable ElevatorColumnget(net.minecraft.world.level.LevelAccessor level, ElevatorColumn.ColumnCoords coords) Collection<net.minecraft.core.BlockPos> static ElevatorColumngetOrCreate(net.minecraft.world.level.LevelAccessor level, ElevatorColumn.ColumnCoords coords) intvoidinitNames(net.minecraft.world.level.Level level) booleanisActive()booleanvoidvoidvoidremove(net.minecraft.core.BlockPos contactPos) voidsetActive(boolean isActive) voidtarget(int yLevel)
-
Field Details
-
LOADED_COLUMNS
public static net.createmod.catnip.data.WorldAttached<Map<ElevatorColumn.ColumnCoords,ElevatorColumn>> LOADED_COLUMNS -
level
protected net.minecraft.world.level.LevelAccessor level -
coords
-
contacts
-
targetedYLevel
protected int targetedYLevel -
isActive
protected boolean isActive -
targetAvailable
protected boolean targetAvailable -
namesListVersion
public int namesListVersion
-
-
Constructor Details
-
ElevatorColumn
public ElevatorColumn(net.minecraft.world.level.LevelAccessor level, ElevatorColumn.ColumnCoords coords)
-
-
Method Details
-
get
@Nullable public static @Nullable ElevatorColumn get(net.minecraft.world.level.LevelAccessor level, ElevatorColumn.ColumnCoords coords) -
getOrCreate
public static ElevatorColumn getOrCreate(net.minecraft.world.level.LevelAccessor level, ElevatorColumn.ColumnCoords coords) -
markDirty
public void markDirty() -
floorReached
-
compileNamesList
-
namesChanged
public void namesChanged() -
getContacts
-
gatherAll
public void gatherAll() -
contactAt
public net.minecraft.core.BlockPos contactAt(int y) -
setActive
public void setActive(boolean isActive) -
isActive
public boolean isActive() -
target
public void target(int yLevel) -
isTargetAvailable
public boolean isTargetAvailable() -
getTargetedYLevel
public int getTargetedYLevel() -
initNames
public void initNames(net.minecraft.world.level.Level level) -
add
public void add(net.minecraft.core.BlockPos contactPos) -
remove
public void remove(net.minecraft.core.BlockPos contactPos)
-