Interface CustomJavaEntityType.Builder
- Enclosing interface:
CustomJavaEntityType
public static interface CustomJavaEntityType.Builder
-
Method Summary
Modifier and TypeMethodDescriptiondefinition(@Nullable GeyserEntityDefinition defaultBedrockDefinition) The default Bedrock edition entity definition.height(@org.checkerframework.checker.index.qual.NonNegative float height) The height of this entityjavaId(int javaId) The entity type's numeric network id.type(@NonNull Identifier entityType) The entity type's identifier.width(@org.checkerframework.checker.index.qual.NonNegative float width) The width of this entity.
-
Method Details
-
type
The entity type's identifier. It cannot be in the Minecraft namespace for custom entities!- Parameters:
entityType- the identifier- Returns:
- this builder
-
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
The default Bedrock edition entity definition. You can define custom Bedrock entities, or use vanilla definitions obtainable via theGeyserDefineEntitiesEvent.entities()collection. This entity has to be registered before calling this method!- Parameters:
defaultBedrockDefinition- the default Bedrock definition- Returns:
- this builder
-