Package cn.nukkit.entity.custom
Class CustomEntityDefinition.Builder
java.lang.Object
cn.nukkit.entity.custom.CustomEntityDefinition.Builder
- Enclosing class:
- CustomEntityDefinition
-
Method Summary
Modifier and TypeMethodDescriptionBID也就是行为包中的Runtime Identifiers,在原版实体中,用Network Type Id来代表实体类型,在自定义实体中,我们用BID也就是Runtime Identifiers来标识实体类型。build()
identifier
(String identifier) spawnEgg
(boolean spawnEgg) summonable
(boolean summonable)
-
Method Details
-
identifier
-
bid
BID也就是行为包中的Runtime Identifiers,在原版实体中,用Network Type Id来代表实体类型,在自定义实体中,我们用BID也就是Runtime Identifiers来标识实体类型。它用于模仿一些原版实体的硬编码元素
BID is the Runtime Identifiers in the behavior pack, in the original entity, the Network Type ID is used to represent the entity type, and in the custom entity, we use the BID is the Runtime Identifiers to identify the entity type.
It is used to mimic hard-coded elements of the vanilla entity
- Parameters:
bid
- the bid- Returns:
- the builder
- See Also:
-
spawnEgg
-
summonable
-
build
-