Package tschipp.linear.build
Class LinearState
java.lang.Object
tschipp.linear.build.LinearState
A player's Linear state on either side. The server reads the attached data, the client uses what the
server last sent (
LinearState.Client).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe local player's state as last sent by the server, plus the current drag.static final recordA line being dragged. -
Method Summary
Modifier and TypeMethodDescriptionstatic LinearPlayerDatadata(net.minecraft.world.entity.player.Player player) The attached data.static booleanisBuilding(net.minecraft.world.entity.player.Player player) static booleanisDragging(net.minecraft.world.entity.player.Player player) static BuildModemode(net.minecraft.world.entity.player.Player player) static LinearSettingssettings(net.minecraft.world.entity.player.Player player)
-
Method Details
-
data
The attached data. Server only. -
isBuilding
public static boolean isBuilding(net.minecraft.world.entity.player.Player player) -
mode
-
settings
-
isDragging
public static boolean isDragging(net.minecraft.world.entity.player.Player player)
-