Uses of Class
cn.nukkit.entity.Attribute
Package
Description
与实体相关的类,包含友好生物,敌对生物等.
各种工具类.
-
Uses of Attribute in cn.nukkit
Modifier and TypeMethodDescriptionvoid
Player.setAttribute
(Attribute attribute) 以指定Attribute
发送UpdateAttributesPacket数据包到该玩家。 -
Uses of Attribute in cn.nukkit.entity
Modifier and TypeMethodDescriptionstatic Attribute
Attribute.addAttribute
(int id, String name, float minValue, float maxValue, float defaultValue) static Attribute
Attribute.addAttribute
(int id, String name, float minValue, float maxValue, float defaultValue, boolean shouldSend) Attribute.clone()
static Attribute
Attribute.getAttribute
(int id) 获取对应id的Attribute
。static Attribute
Attribute.getAttributeByName
(String name) 获取对应名字的Attribute
。Attribute.setDefaultValue
(float defaultValue) Attribute.setMaxValue
(float maxValue) Attribute.setMinValue
(float minValue) Attribute.setValue
(float value) Attribute.setValue
(float value, boolean fit) -
Uses of Attribute in cn.nukkit.network.protocol
-
Uses of Attribute in cn.nukkit.utils
Modifier and TypeMethodDescriptionBinaryStream.getAttributeList()
Reads a list of Attributes from the stream.Modifier and TypeMethodDescriptionvoid
BinaryStream.putAttributeList
(Attribute[] attributes) Writes a list of Attributes to the packet buffer using the standard format.