public final class FlagTransformer extends java.lang.Object implements EntityDataTransformer<java.lang.Long,java.util.EnumSet<EntityFlag>>
IDENTITY| Constructor and Description |
|---|
FlagTransformer(org.cloudburstmc.protocol.common.util.TypeMap<EntityFlag> typeMap,
int index) |
| Modifier and Type | Method and Description |
|---|---|
java.util.EnumSet<EntityFlag> |
deserialize(BedrockCodecHelper helper,
EntityDataMap map,
java.lang.Long value) |
java.lang.Long |
serialize(BedrockCodecHelper helper,
EntityDataMap map,
java.util.EnumSet<EntityFlag> flags) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidentitypublic FlagTransformer(org.cloudburstmc.protocol.common.util.TypeMap<EntityFlag> typeMap, int index)
public java.lang.Long serialize(BedrockCodecHelper helper, EntityDataMap map, java.util.EnumSet<EntityFlag> flags)
serialize in interface EntityDataTransformer<java.lang.Long,java.util.EnumSet<EntityFlag>>public java.util.EnumSet<EntityFlag> deserialize(BedrockCodecHelper helper, EntityDataMap map, java.lang.Long value)
deserialize in interface EntityDataTransformer<java.lang.Long,java.util.EnumSet<EntityFlag>>