diff --git a/src/main/java/net/minecraftforge/fml/common/registry/EntityEntryBuilder.java b/src/main/java/net/minecraftforge/fml/common/registry/EntityEntryBuilder.java index 0b191a269..320defea9 100644 --- a/src/main/java/net/minecraftforge/fml/common/registry/EntityEntryBuilder.java +++ b/src/main/java/net/minecraftforge/fml/common/registry/EntityEntryBuilder.java @@ -108,7 +108,9 @@ public final EntityEntryBuilder entity(@Nonnull final Class enti } /** - * Sets the factory of the entity. + * Sets the factory of the entity. Used for the client-side sync. + * Here, we just construct an instance. Datas will be passed elsewhere. + * {@see IEntityAdditionalSpawnData} * * @param factory The entity factory * @return This builder diff --git a/src/main/java/net/minecraftforge/fml/common/registry/EntityRegistry.java b/src/main/java/net/minecraftforge/fml/common/registry/EntityRegistry.java index 8ba7a978c..660323cc7 100644 --- a/src/main/java/net/minecraftforge/fml/common/registry/EntityRegistry.java +++ b/src/main/java/net/minecraftforge/fml/common/registry/EntityRegistry.java @@ -167,7 +167,10 @@ private EntityRegistry() * @param trackingRange The range at which MC will send tracking updates * @param updateFrequency The frequency of tracking updates * @param sendsVelocityUpdates Whether to send velocity information packets as well + *

+ * @deprecated subscribe {@link net.minecraftforge.event.RegistryEvent.Register} instead. */ + @Deprecated public static void registerModEntity(ResourceLocation registryName, Class entityClass, String entityName, int id, Object mod, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates) { instance().doModEntityRegistration(registryName, entityClass, entityName, id, mod, trackingRange, updateFrequency, sendsVelocityUpdates); @@ -186,7 +189,10 @@ public static void registerModEntity(ResourceLocation registryName, Class + * @deprecated subscribe {@link net.minecraftforge.event.RegistryEvent.Register} instead. */ + @Deprecated public static void registerModEntity(ResourceLocation registryName, Class entityClass, String entityName, int id, Object mod, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates, int eggPrimary, int eggSecondary) { instance().doModEntityRegistration(registryName, entityClass, entityName, id, mod, trackingRange, updateFrequency, sendsVelocityUpdates);