Interface CustomJavaEntityType.Builder

Enclosing interface:
CustomJavaEntityType

public static interface CustomJavaEntityType.Builder
  • Method Details

    • type

      CustomJavaEntityType.Builder type(@NonNull Identifier entityType)
      The entity type's identifier. It cannot be in the Minecraft namespace for custom entities!
      Parameters:
      entityType - the identifier
      Returns:
      this builder
    • javaId

      CustomJavaEntityType.Builder javaId(int javaId)
      The entity type's numeric network id.
      Parameters:
      javaId - the java id
      Returns:
      this builder
    • width

      CustomJavaEntityType.Builder width(@org.checkerframework.checker.index.qual.NonNegative float width)
      The width of this entity.
      Parameters:
      width - the width of this entity
      Returns:
      this builder
    • height

      CustomJavaEntityType.Builder height(@org.checkerframework.checker.index.qual.NonNegative float height)
      The height of this entity
      Parameters:
      height - the height
      Returns:
      this builder
    • definition

      CustomJavaEntityType.Builder definition(@Nullable GeyserEntityDefinition defaultBedrockDefinition)
      The default Bedrock edition entity definition. You can define custom Bedrock entities, or use vanilla definitions obtainable via the GeyserDefineEntitiesEvent.entities() collection. This entity has to be registered before calling this method!
      Parameters:
      defaultBedrockDefinition - the default Bedrock definition
      Returns:
      this builder