Class DeferredEntityTypeBuilder<E extends Entity,T extends EntityType<E>>
java.lang.Object
net.neoforged.neoforge.registries.DeferredHolder<EntityType<?>,T>
net.neoforged.testframework.registration.DeferredEntityTypeBuilder<E,T>
- All Implemented Interfaces:
Supplier<T>
,Holder<EntityType<?>>
,IWithData<EntityType<?>>
public class DeferredEntityTypeBuilder<E extends Entity,T extends EntityType<E>>
extends DeferredHolder<EntityType<?>,T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.Holder
Holder.Direct<T>, Holder.Kind, Holder.Reference<T>
-
Field Summary
Fields inherited from class net.neoforged.neoforge.registries.DeferredHolder
key
-
Constructor Summary
ModifierConstructorDescriptionprotected
DeferredEntityTypeBuilder
(ResourceKey<EntityType<?>> key, RegistrationHelper helper) -
Method Summary
Methods inherited from class net.neoforged.neoforge.registries.DeferredHolder
asOptional, bind, canSerializeIn, create, create, create, equals, get, getId, getKey, getRegistry, hashCode, is, is, is, is, isBound, kind, tags, toString, unwrap, unwrapKey, value
-
Field Details
-
helper
-
-
Constructor Details
-
DeferredEntityTypeBuilder
-
-
Method Details
-
withRenderer
public DeferredEntityTypeBuilder<E,T> withRenderer(Supplier<Function<EntityRendererProvider.Context, EntityRenderer<E>>> renderer) -
withAttributes
public DeferredEntityTypeBuilder<E,T> withAttributes(Supplier<AttributeSupplier.Builder> attributes) -
withLang
-