Class EntityCopier
java.lang.Object
net.rebel459.unified.impl.data.registry.EntityCopier
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 voiddeclare(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 booleanhasAttributeOverride(net.minecraft.world.entity.EntityType<?> entityType) static booleanhasSpawnPlacementOverride(net.minecraft.world.entity.EntityType<?> entityType) static booleanisDefaultVariant(net.minecraft.world.entity.EntityType<?> entityType, net.minecraft.core.Holder<MobVariants.Definition> variant) static voidmarkAttributeOverride(net.minecraft.resources.ResourceKey<net.minecraft.world.entity.EntityType<?>> entityType) static voidmarkSpawnPlacementOverride(net.minecraft.world.entity.EntityType<?> entityType) static voidonRegistered(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 voidsetDefaultVariant(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
-
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()
-