Class PlayerVariables
-
- All Implemented Interfaces:
-
net.neoforged.neoforge.common.util.INBTSerializable
public final class PlayerVariables implements INBTSerializable<Tag>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPlayerVariables.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerMOON_GLITCH_DURATION_SECSprivate BooleanshowVHSprivate BooleanfileCreatedprivate BooleanscreenDamageprivate BlockPosbasePosprivate BlockPoshomePosprivate BlockPosspawnPosprivate BooleanhasPlayedCreepyDiscprivate IntegerentityReputationprivate IntegernoWayOutFrameprivate BooleanvhsEnabledprivate BooleanaberrationEnabledprivate BooleanmoonGlitchActivepublic final static PlayerVariables.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description PlayerVariables(Boolean fileCreated, Boolean screenDamage, BlockPos basePos, BlockPos homePos, BlockPos spawnPos, Boolean hasPlayedCreepyDisc, Integer entityReputation, Integer noWayOutFrame, Boolean vhsEnabled, Boolean aberrationEnabled, Boolean moonGlitchActive)
-
Method Summary
Modifier and Type Method Description final BooleangetShowVHS()final UnitsetShowVHS(Boolean showVHS)final BooleangetFileCreated()final UnitsetFileCreated(Boolean fileCreated)final BooleangetScreenDamage()final UnitsetScreenDamage(Boolean screenDamage)final BlockPosgetBasePos()final UnitsetBasePos(BlockPos basePos)final BlockPosgetHomePos()final UnitsetHomePos(BlockPos homePos)final BlockPosgetSpawnPos()final UnitsetSpawnPos(BlockPos spawnPos)final BooleangetHasPlayedCreepyDisc()final UnitsetHasPlayedCreepyDisc(Boolean hasPlayedCreepyDisc)final IntegergetEntityReputation()final UnitsetEntityReputation(Integer entityReputation)final IntegergetNoWayOutFrame()final UnitsetNoWayOutFrame(Integer noWayOutFrame)final BooleangetVhsEnabled()final UnitsetVhsEnabled(Boolean vhsEnabled)final BooleangetAberrationEnabled()final UnitsetAberrationEnabled(Boolean aberrationEnabled)final BooleangetMoonGlitchActive()final UnitsetMoonGlitchActive(Boolean moonGlitchActive)final UnitsyncTo(Player player)TagserializeNBT(HolderLookup.Provider provider)UnitdeserializeNBT(HolderLookup.Provider provider, Tag tag)-
-
Method Detail
-
getShowVHS
final Boolean getShowVHS()
-
setShowVHS
final Unit setShowVHS(Boolean showVHS)
-
getFileCreated
final Boolean getFileCreated()
-
setFileCreated
final Unit setFileCreated(Boolean fileCreated)
-
getScreenDamage
final Boolean getScreenDamage()
-
setScreenDamage
final Unit setScreenDamage(Boolean screenDamage)
-
getBasePos
final BlockPos getBasePos()
-
setBasePos
final Unit setBasePos(BlockPos basePos)
-
getHomePos
final BlockPos getHomePos()
-
setHomePos
final Unit setHomePos(BlockPos homePos)
-
getSpawnPos
final BlockPos getSpawnPos()
-
setSpawnPos
final Unit setSpawnPos(BlockPos spawnPos)
-
getHasPlayedCreepyDisc
final Boolean getHasPlayedCreepyDisc()
-
setHasPlayedCreepyDisc
final Unit setHasPlayedCreepyDisc(Boolean hasPlayedCreepyDisc)
-
getEntityReputation
final Integer getEntityReputation()
-
setEntityReputation
final Unit setEntityReputation(Integer entityReputation)
-
getNoWayOutFrame
final Integer getNoWayOutFrame()
-
setNoWayOutFrame
final Unit setNoWayOutFrame(Integer noWayOutFrame)
-
getVhsEnabled
final Boolean getVhsEnabled()
-
setVhsEnabled
final Unit setVhsEnabled(Boolean vhsEnabled)
-
getAberrationEnabled
final Boolean getAberrationEnabled()
-
setAberrationEnabled
final Unit setAberrationEnabled(Boolean aberrationEnabled)
-
getMoonGlitchActive
final Boolean getMoonGlitchActive()
-
setMoonGlitchActive
final Unit setMoonGlitchActive(Boolean moonGlitchActive)
-
serializeNBT
Tag serializeNBT(HolderLookup.Provider provider)
-
deserializeNBT
Unit deserializeNBT(HolderLookup.Provider provider, Tag tag)
-
-
-
-