Package net.minecraft.src
Class HackKey<T>
- java.lang.Object
-
- net.minecraft.src.HackKey<T>
-
@Client public final class HackKey<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static HackKey<java.lang.Boolean>
AUTO_BRIDGE
static HackKey<java.lang.Boolean>
BLOCK_ESP
static HackKey<java.util.BitSet>
BLOCK_ESP_BLOCKS
static HackKey<java.lang.Boolean>
ENTITIES_ON_TOP
static HackKey<java.lang.Boolean>
ENTITY_ESP
static HackKey<java.lang.Boolean>
ENTITY_ESP_FRIENDLY_MOBS
static HackKey<java.lang.Boolean>
ENTITY_ESP_HOSTILE_MOBS
static HackKey<java.lang.Boolean>
ENTITY_ESP_ITEMS
static HackKey<java.lang.Boolean>
ENTITY_ESP_PLAYERS
static HackKey<java.lang.Boolean>
FLY
static HackKey<java.lang.Boolean>
FREECAM
static HackKey<java.lang.Boolean>
FULLBRIGHT
static HackKey<java.lang.Boolean>
INSTANT
static HackKey<java.lang.Integer>
INSTANT_MULTIPLIER
static HackKey<java.lang.Boolean>
INSTANT_PORTAL
static HackKey<java.lang.Boolean>
JESUS
static HackKey<java.lang.Boolean>
KILLAURA
static HackKey<java.lang.Boolean>
LIQUID_MOVEMENT
static HackKey<java.lang.Boolean>
NO_DEATH
static HackKey<java.lang.Boolean>
NO_FALL
static HackKey<java.lang.Boolean>
NO_SLOW
static HackKey<java.lang.Boolean>
PROJECTILE_TRAJECTORY
static HackKey<java.lang.Boolean>
REACH
static HackKey<java.lang.Boolean>
SLOW_FALL
static HackKey<java.lang.Boolean>
SPEED
static HackKey<java.lang.Float>
SPEED_MULTIPLIER
static HackKey<java.lang.Boolean>
SPRINT_HACK
static HackKey<java.lang.Boolean>
TRACERS
static HackKey<java.lang.Boolean>
XRAY
static HackKey<java.util.BitSet>
XRAY_BLOCKS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(com.google.gson.stream.JsonReader reader)
boolean
displayToggleStatus()
static java.util.Collection<HackKey<?>>
getAllHacks()
static HackKey<?>
getHackByName(java.lang.String name)
KeyBinding
getKeybind()
java.lang.String
getName()
static java.util.Collection<HackKey<java.lang.Boolean>>
getToggleHacks()
java.lang.String
getTranslationKey()
T
getValue()
HackKey<T>
hideToggleStatus()
void
markUpdated()
HackKey<T>
noRepresentation()
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)
static HackKey<java.util.BitSet>
registerBlocksList(java.lang.String name)
static HackKey<java.util.BitSet>
registerBlocksList(java.lang.String name, java.util.function.Predicate<Block> checkBlock)
static HackKey<java.lang.Float>
registerFloat(java.lang.String name, float defaultValue)
static HackKey<java.lang.Integer>
registerInt(java.lang.String name, int defaultValue)
static HackKey<java.lang.Boolean>
registerToggle(java.lang.String name)
static HackKey<java.lang.Boolean>
registerToggle(java.lang.String name, boolean defaultValue)
java.lang.String
represent()
java.lang.String
represent(T value)
void
serialize(com.google.gson.stream.JsonWriter writer)
void
setValue(T value)
void
setValueForce(T value)
HackKey<T>
withChangeHandler(java.lang.Runnable handler)
HackKey<T>
withDefaultKeybind(int keybind)
HackKey<T>
withoutKeybind()
HackKey<T>
withRepresenter(java.util.function.Function<T,java.lang.String> representer)
-
-
-
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
-
-
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)
-
represent
public java.lang.String represent()
-
represent
public java.lang.String represent(T value)
-
getKeybind
public KeyBinding getKeybind()
-
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()
-
-