Class HackKey<T>


  • @Client
    public final class HackKey<T>
    extends java.lang.Object
    • Field Detail

      • FLY

        public static final HackKey<java.lang.Boolean> FLY
      • SPRINT_HACK

        public static final HackKey<java.lang.Boolean> SPRINT_HACK
      • NO_SLOW

        public static final HackKey<java.lang.Boolean> NO_SLOW
      • FULLBRIGHT

        public static final HackKey<java.lang.Boolean> FULLBRIGHT
      • JESUS

        public static final HackKey<java.lang.Boolean> JESUS
      • FREECAM

        public static final HackKey<java.lang.Boolean> FREECAM
      • XRAY

        public static final HackKey<java.lang.Boolean> XRAY
      • XRAY_BLOCKS

        public static final HackKey<java.util.BitSet> XRAY_BLOCKS
      • ENTITIES_ON_TOP

        public static final HackKey<java.lang.Boolean> ENTITIES_ON_TOP
      • INSTANT

        public static final HackKey<java.lang.Boolean> INSTANT
      • INSTANT_MULTIPLIER

        public static final HackKey<java.lang.Integer> INSTANT_MULTIPLIER
      • SPEED

        public static final HackKey<java.lang.Boolean> SPEED
      • SPEED_MULTIPLIER

        public static final HackKey<java.lang.Float> SPEED_MULTIPLIER
      • KILLAURA

        public static final HackKey<java.lang.Boolean> KILLAURA
      • LIQUID_MOVEMENT

        public static final HackKey<java.lang.Boolean> LIQUID_MOVEMENT
      • NO_FALL

        public static final HackKey<java.lang.Boolean> NO_FALL
      • SLOW_FALL

        public static final HackKey<java.lang.Boolean> SLOW_FALL
      • PROJECTILE_TRAJECTORY

        public static final HackKey<java.lang.Boolean> PROJECTILE_TRAJECTORY
      • AUTO_BRIDGE

        public static final HackKey<java.lang.Boolean> AUTO_BRIDGE
      • BLOCK_ESP

        public static final HackKey<java.lang.Boolean> BLOCK_ESP
      • BLOCK_ESP_BLOCKS

        public static final HackKey<java.util.BitSet> BLOCK_ESP_BLOCKS
      • ENTITY_ESP

        public static final HackKey<java.lang.Boolean> ENTITY_ESP
      • ENTITY_ESP_ITEMS

        public static final HackKey<java.lang.Boolean> ENTITY_ESP_ITEMS
      • ENTITY_ESP_HOSTILE_MOBS

        public static final HackKey<java.lang.Boolean> ENTITY_ESP_HOSTILE_MOBS
      • ENTITY_ESP_FRIENDLY_MOBS

        public static final HackKey<java.lang.Boolean> ENTITY_ESP_FRIENDLY_MOBS
      • ENTITY_ESP_PLAYERS

        public static final HackKey<java.lang.Boolean> ENTITY_ESP_PLAYERS
      • NO_DEATH

        public static final HackKey<java.lang.Boolean> NO_DEATH
      • INSTANT_PORTAL

        public static final HackKey<java.lang.Boolean> INSTANT_PORTAL
      • REACH

        public static final HackKey<java.lang.Boolean> REACH
      • TRACERS

        public static final HackKey<java.lang.Boolean> TRACERS
    • Constructor Detail

      • HackKey

        public HackKey​(java.lang.String name,
                       org.apache.commons.io.function.IOBiConsumer<com.google.gson.stream.JsonWriter,​T> serializer,
                       org.apache.commons.io.function.IOFunction<com.google.gson.stream.JsonReader,​T> deserializer)
    • Method Detail

      • getName

        public java.lang.String getName()
      • serialize

        public void serialize​(com.google.gson.stream.JsonWriter writer)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • deserialize

        public void deserialize​(com.google.gson.stream.JsonReader reader)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getTranslationKey

        public java.lang.String getTranslationKey()
      • getValue

        public T getValue()
      • setValue

        public void setValue​(T value)
      • markUpdated

        public void markUpdated()
      • setValueForce

        public void setValueForce​(T value)
      • withRepresenter

        public HackKey<T> withRepresenter​(java.util.function.Function<T,​java.lang.String> representer)
      • noRepresentation

        public HackKey<T> noRepresentation()
      • represent

        public java.lang.String represent()
      • represent

        public java.lang.String represent​(T value)
      • withDefaultKeybind

        public HackKey<T> withDefaultKeybind​(int keybind)
      • withoutKeybind

        public HackKey<T> withoutKeybind()
      • withChangeHandler

        public HackKey<T> withChangeHandler​(java.lang.Runnable handler)
      • hideToggleStatus

        public HackKey<T> hideToggleStatus()
      • displayToggleStatus

        public boolean displayToggleStatus()
      • register

        public static <T> HackKey<T> register​(java.lang.String name,
                                              T defaultValue,
                                              org.apache.commons.io.function.IOBiConsumer<com.google.gson.stream.JsonWriter,​T> serializer,
                                              org.apache.commons.io.function.IOFunction<com.google.gson.stream.JsonReader,​T> deserializer)
      • registerToggle

        public static HackKey<java.lang.Boolean> registerToggle​(java.lang.String name,
                                                                boolean defaultValue)
      • registerToggle

        public static HackKey<java.lang.Boolean> registerToggle​(java.lang.String name)
      • registerInt

        public static HackKey<java.lang.Integer> registerInt​(java.lang.String name,
                                                             int defaultValue)
      • registerFloat

        public static HackKey<java.lang.Float> registerFloat​(java.lang.String name,
                                                             float defaultValue)
      • registerBlocksList

        public static HackKey<java.util.BitSet> registerBlocksList​(java.lang.String name,
                                                                   java.util.function.Predicate<Block> checkBlock)
      • registerBlocksList

        public static HackKey<java.util.BitSet> registerBlocksList​(java.lang.String name)
      • getAllHacks

        public static java.util.Collection<HackKey<?>> getAllHacks()
      • getHackByName

        public static HackKey<?> getHackByName​(java.lang.String name)
      • getToggleHacks

        public static java.util.Collection<HackKey<java.lang.Boolean>> getToggleHacks()