Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encourage modders to use the modern entity registration method #250

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ public final EntityEntryBuilder<E> entity(@Nonnull final Class<? extends E> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <p>
* @deprecated subscribe {@link net.minecraftforge.event.RegistryEvent.Register<EntityEntry>} instead.
*/
@Deprecated
public static void registerModEntity(ResourceLocation registryName, Class<? extends Entity> entityClass, String entityName, int id, Object mod, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates)
{
instance().doModEntityRegistration(registryName, entityClass, entityName, id, mod, trackingRange, updateFrequency, sendsVelocityUpdates);
Expand All @@ -186,7 +189,10 @@ public static void registerModEntity(ResourceLocation registryName, Class<? exte
* @param sendsVelocityUpdates Whether to send velocity information packets as well
* @param eggPrimary Primary egg color
* @param eggSecondary Secondary egg color
* <p>
* @deprecated subscribe {@link net.minecraftforge.event.RegistryEvent.Register<EntityEntry>} instead.
*/
@Deprecated
public static void registerModEntity(ResourceLocation registryName, Class<? extends Entity> 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);
Expand Down
Loading