public class NetworkUtils extends Object
| Constructor and Description |
|---|
NetworkUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.nukkitx.protocol.bedrock.data.AttributeData |
attributeToNetwork(org.cloudburstmc.api.entity.Attribute attr) |
static org.cloudburstmc.api.potion.EffectType |
effectFromLegacy(byte effectId) |
static byte |
effectToNetwork(org.cloudburstmc.api.potion.EffectType type) |
static void |
gameRulesToNetwork(org.cloudburstmc.api.level.gamerule.GameRuleMap gameRules,
List<com.nukkitx.protocol.bedrock.data.GameRuleData<?>> networkRules) |
static com.nukkitx.protocol.bedrock.data.inventory.ContainerType |
inventoryToNetwork(org.cloudburstmc.api.inventory.InventoryType type) |
static org.cloudburstmc.api.potion.PotionType |
potionFromLegacy(short potionId) |
static short |
potionToNetwork(org.cloudburstmc.api.potion.PotionType type) |
public static com.nukkitx.protocol.bedrock.data.AttributeData attributeToNetwork(org.cloudburstmc.api.entity.Attribute attr)
public static void gameRulesToNetwork(org.cloudburstmc.api.level.gamerule.GameRuleMap gameRules,
List<com.nukkitx.protocol.bedrock.data.GameRuleData<?>> networkRules)
public static short potionToNetwork(org.cloudburstmc.api.potion.PotionType type)
public static org.cloudburstmc.api.potion.PotionType potionFromLegacy(short potionId)
public static byte effectToNetwork(org.cloudburstmc.api.potion.EffectType type)
public static org.cloudburstmc.api.potion.EffectType effectFromLegacy(byte effectId)
public static com.nukkitx.protocol.bedrock.data.inventory.ContainerType inventoryToNetwork(org.cloudburstmc.api.inventory.InventoryType type)
Copyright © 2021. All rights reserved.