Class CustomEntityDefinition.Builder

java.lang.Object
cn.nukkit.entity.custom.CustomEntityDefinition.Builder
Enclosing class:
CustomEntityDefinition

public static class CustomEntityDefinition.Builder extends Object
  • Method Details

    • identifier

      public CustomEntityDefinition.Builder identifier(String 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

      public CustomEntityDefinition.Builder spawnEgg(boolean spawnEgg)
    • summonable

      public CustomEntityDefinition.Builder summonable(boolean summonable)
    • build

      public CustomEntityDefinition build()