Interface UnifiedRegistries.EntityTypes

All Known Implementing Classes:
NeoForgeUnifiedRegistries.EntityTypes, StagedRegistries.StagedEntityTypes
Enclosing class:
UnifiedRegistries

public static interface UnifiedRegistries.EntityTypes
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAlias(net.minecraft.resources.Identifier convertedFrom, net.minecraft.resources.Identifier convertedTo)
     
    create(String modId)
     
     
    <T extends net.minecraft.world.entity.Entity>
    Supplied<net.minecraft.world.entity.EntityType<T>>
    register(String path, Supplier<net.minecraft.world.entity.EntityType.Builder<T>> builder)
     
    <T extends net.minecraft.world.entity.LivingEntity>
    Supplied<net.minecraft.world.entity.EntityType<T>>
    register(String path, Supplier<net.minecraft.world.entity.EntityType.Builder<T>> builder, Supplier<net.minecraft.world.entity.ai.attributes.AttributeSupplier> attributes)
     
  • Method Details

    • modId

      String modId()
    • register

      <T extends net.minecraft.world.entity.Entity> Supplied<net.minecraft.world.entity.EntityType<T>> register(String path, Supplier<net.minecraft.world.entity.EntityType.Builder<T>> builder)
    • register

      <T extends net.minecraft.world.entity.LivingEntity> Supplied<net.minecraft.world.entity.EntityType<T>> register(String path, Supplier<net.minecraft.world.entity.EntityType.Builder<T>> builder, Supplier<net.minecraft.world.entity.ai.attributes.AttributeSupplier> attributes)
    • addAlias

      void addAlias(net.minecraft.resources.Identifier convertedFrom, net.minecraft.resources.Identifier convertedTo)
    • create

      static UnifiedRegistries.EntityTypes create(String modId)