Class CheatSafeLong

java.lang.Object
com.prineside.tdi2.utils.CheatSafeLong
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public final class CheatSafeLong extends Object implements com.esotericsoftware.kryo.KryoSerializable
  • Constructor Summary

    Constructors
    Constructor
    Description
    CheatSafeLong(long value, long setOnCheat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(long amount)
     
    long
    get()
     
    long
     
    void
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
     
    void
    set(long newValue)
     
    void
    sub(long amount)
     
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CheatSafeLong

      public CheatSafeLong(long value, long setOnCheat)
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • getSetOnCheat

      public long getSetOnCheat()
    • get

      public long get()
    • set

      public void set(long newValue)
    • add

      public void add(long amount)
    • sub

      public void sub(long amount)
    • toString

      public String toString()
      Overrides:
      toString in class Object