Package tschipp.linear.data
Class LinearPlayerData
java.lang.Object
tschipp.linear.data.LinearPlayerData
Per-player data: building on/off, the current mode, and overrides set with
/linear. An empty
override means the server config value is used. Saved and kept on death.-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final com.mojang.serialization.Codec<LinearPlayerData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(LinearPlayerData other) voidreadNbt(net.minecraft.nbt.CompoundTag tag) voidResets the limits to the server config.net.minecraft.nbt.CompoundTagtoNbt()
-
Field Details
-
CODEC
-
building
public boolean building -
mode
-
modes
-
maxBlocks
-
maxDistance
-
reachSurvival
-
reachCreative
-
midairSurvival
-
midairCreative
-
-
Constructor Details
-
LinearPlayerData
public LinearPlayerData()
-
-
Method Details
-
resetLimits
public void resetLimits()Resets the limits to the server config. Modes are reset separately. -
copyFrom
-
toNbt
public net.minecraft.nbt.CompoundTag toNbt() -
readNbt
public void readNbt(net.minecraft.nbt.CompoundTag tag)
-