public final class BooleanTransformer extends Object implements EntityDataTransformer<Byte,Boolean>
| Modifier and Type | Field and Description |
|---|---|
static BooleanTransformer |
INSTANCE |
IDENTITY| Constructor and Description |
|---|
BooleanTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
deserialize(BedrockCodecHelper helper,
EntityDataMap map,
Byte value) |
Byte |
serialize(BedrockCodecHelper helper,
EntityDataMap map,
Boolean value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidentitypublic static final BooleanTransformer INSTANCE
public Byte serialize(BedrockCodecHelper helper, EntityDataMap map, Boolean value)
serialize in interface EntityDataTransformer<Byte,Boolean>public Boolean deserialize(BedrockCodecHelper helper, EntityDataMap map, Byte value)
deserialize in interface EntityDataTransformer<Byte,Boolean>Copyright © 2018–2022 CloudburstMC. All rights reserved.