Package org.geysermc.geyser.entity
Class CustomBedrockEntityDefinition
java.lang.Object
org.geysermc.geyser.entity.BedrockEntityDefinition
org.geysermc.geyser.entity.CustomBedrockEntityDefinition
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.custom.CustomEntityDefinition,org.geysermc.geyser.api.entity.definition.GeyserEntityDefinition
public final class CustomBedrockEntityDefinition
extends BedrockEntityDefinition
implements org.geysermc.geyser.api.entity.custom.CustomEntityDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from class org.geysermc.geyser.entity.BedrockEntityDefinition
BedrockEntityDefinition.Builder -
Constructor Summary
ConstructorsConstructorDescriptionCustomBedrockEntityDefinition(@NonNull org.geysermc.geyser.api.util.Identifier identifier, @NonNull GeyserEntityProperties registeredProperties) -
Method Summary
Modifier and TypeMethodDescriptiongetOrCreate(@NonNull org.geysermc.geyser.api.util.Identifier identifier) Retrieves an existing registered entity definition by identifier, or creates a new unregisteredCustomBedrockEntityDefinitionfor the given identifier.toString()booleanvanilla()Methods inherited from class org.geysermc.geyser.entity.BedrockEntityDefinition
builder, equals, getVanilla, hashCode, identifier, properties, registered, registeredPropertiesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.geyser.api.entity.definition.GeyserEntityDefinition
identifier, properties, registered
-
Constructor Details
-
CustomBedrockEntityDefinition
public CustomBedrockEntityDefinition(@NonNull org.geysermc.geyser.api.util.Identifier identifier, @NonNull GeyserEntityProperties registeredProperties)
-
-
Method Details
-
getOrCreate
public static CustomBedrockEntityDefinition getOrCreate(@NonNull org.geysermc.geyser.api.util.Identifier identifier) Retrieves an existing registered entity definition by identifier, or creates a new unregisteredCustomBedrockEntityDefinitionfor the given identifier. Custom identifiers must not use the "minecraft" namespace. -
vanilla
public boolean vanilla()- Specified by:
vanillain interfaceorg.geysermc.geyser.api.entity.custom.CustomEntityDefinition- Specified by:
vanillain interfaceorg.geysermc.geyser.api.entity.definition.GeyserEntityDefinition- Overrides:
vanillain classBedrockEntityDefinition
-
toString
- Overrides:
toStringin classBedrockEntityDefinition
-