Class EntityCopier

java.lang.Object
net.rebel459.unified.impl.data.registry.EntityCopier

public final class EntityCopier extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.entity.EntityType<?>
    create(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base)
     
    static net.minecraft.world.entity.EntityType<?>
    create(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base, net.minecraft.resources.Identifier defaultVariant)
     
    static net.minecraft.world.entity.EntityType<?>
    create(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base, MobVariants.Definition defaultVariant)
     
    static void
    declare(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base)
     
    static Optional<net.minecraft.resources.ResourceKey<MobVariants.Definition>>
    defaultVariant(net.minecraft.world.entity.EntityType<?> entityType)
     
    static boolean
    hasAttributeOverride(net.minecraft.world.entity.EntityType<?> entityType)
     
    static boolean
    hasSpawnPlacementOverride(net.minecraft.world.entity.EntityType<?> entityType)
     
    static boolean
    isDefaultVariant(net.minecraft.world.entity.EntityType<?> entityType, net.minecraft.core.Holder<MobVariants.Definition> variant)
     
    static void
    markAttributeOverride(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entityType)
     
    static void
    markSpawnPlacementOverride(net.minecraft.world.entity.EntityType<?> entityType)
     
    static void
    onRegistered(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.world.entity.EntityType<?> entityType)
     
    static Optional<net.minecraft.core.Holder<MobVariants.Definition>>
    resolveDefaultVariant(net.minecraft.world.entity.EntityType<?> entityType, net.minecraft.core.HolderGetter<MobVariants.Definition> variants)
     
    static void
    setDefaultVariant(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entityType, MobVariants.Definition defaultVariant)
     
    static Optional<net.minecraft.world.entity.EntityType<?>>
    template(net.minecraft.world.entity.EntityType<?> entityType)
     
    static Map<net.minecraft.world.entity.EntityType<?>, net.minecraft.world.entity.EntityType<?>>
     
    static void
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static net.minecraft.world.entity.EntityType<?> create(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base, net.minecraft.resources.Identifier defaultVariant)
    • create

      public static net.minecraft.world.entity.EntityType<?> create(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base, MobVariants.Definition defaultVariant)
    • setDefaultVariant

      public static void setDefaultVariant(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entityType, MobVariants.Definition defaultVariant)
    • markAttributeOverride

      public static void markAttributeOverride(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entityType)
    • markSpawnPlacementOverride

      public static void markSpawnPlacementOverride(net.minecraft.world.entity.EntityType<?> entityType)
    • hasAttributeOverride

      public static boolean hasAttributeOverride(net.minecraft.world.entity.EntityType<?> entityType)
    • hasSpawnPlacementOverride

      public static boolean hasSpawnPlacementOverride(net.minecraft.world.entity.EntityType<?> entityType)
    • declare

      public static void declare(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base)
    • create

      public static net.minecraft.world.entity.EntityType<?> create(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> base)
    • onRegistered

      public static void onRegistered(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> key, net.minecraft.world.entity.EntityType<?> entityType)
    • template

      public static Optional<net.minecraft.world.entity.EntityType<?>> template(net.minecraft.world.entity.EntityType<?> entityType)
    • defaultVariant

      public static Optional<net.minecraft.resources.ResourceKey<MobVariants.Definition>> defaultVariant(net.minecraft.world.entity.EntityType<?> entityType)
    • resolveDefaultVariant

      public static Optional<net.minecraft.core.Holder<MobVariants.Definition>> resolveDefaultVariant(net.minecraft.world.entity.EntityType<?> entityType, net.minecraft.core.HolderGetter<MobVariants.Definition> variants)
    • isDefaultVariant

      public static boolean isDefaultVariant(net.minecraft.world.entity.EntityType<?> entityType, net.minecraft.core.Holder<MobVariants.Definition> variant)
    • templates

      public static Map<net.minecraft.world.entity.EntityType<?>, net.minecraft.world.entity.EntityType<?>> templates()
    • validateResolved

      public static void validateResolved()