Class HTSpawnerMob
-
- All Implemented Interfaces:
-
hiiragi283.core.api.registry.HTHolderLike,hiiragi283.core.api.resource.HTIdLike,hiiragi283.core.api.resource.HTKeyLike,hiiragi283.core.api.resource.SupplierWithId,hiiragi283.core.api.text.HTHasText,java.util.function.Supplier
@JvmRecord() public final class HTSpawnerMob extends Record implements HTHolderLike<EntityType<?>, EntityType<?>>, HTHasText
-
-
Method Summary
Modifier and Type Method Description StringgetNamespace()StringgetPath()Either<ResourceKey<EntityType<?>>, Holder<EntityType<?>>>unwrap()EntityType<?>get()ComponentgetText()final static HTSpawnerMobof(EntityType<?> entityType)final static HTSpawnerMobof(Holder<EntityType<?>> holder)-
Methods inherited from class hiiragi283.core.api.registry.HTHolderLike
getHolder, getResourceKey -
Methods inherited from class hiiragi283.core.api.resource.HTIdLike
getId -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getNamespace
String getNamespace()
-
unwrap
Either<ResourceKey<EntityType<?>>, Holder<EntityType<?>>> unwrap()
-
get
EntityType<?> get()
-
getText
Component getText()
-
of
final static HTSpawnerMob of(EntityType<?> entityType)
-
of
final static HTSpawnerMob of(Holder<EntityType<?>> holder)
-
-
-
-