Fix regressions for onAddedTo/RemovedFromWorld and related events (#8434)

This commit is contained in:
sciwhiz12 authored and GitHub committed 2022-02-28 17:23:19 +00:00
1 parent f0c2554b1c
commit 2f8c3ea738
4 files changed
+50 -14

No files matched your search

@@ -148,6 +148,7 @@ public interface IForgeEntity extends ICapabilitySerializable<CompoundTag>
*
* @return True if this entity is being tracked by a world
*/
// TODO: rename in 1.19 to isAddedToLevel
boolean isAddedToWorld();
/**
@@ -155,6 +156,7 @@ public interface IForgeEntity extends ICapabilitySerializable<CompoundTag>
* ticking list. Can be overriden, but needs to call super
* to prevent MC-136995.
*/
// TODO: rename in 1.19 to onAddedToLevel
void onAddedToWorld();
/**
@@ -162,6 +164,7 @@ public interface IForgeEntity extends ICapabilitySerializable<CompoundTag>
* ticking list. Can be overriden, but needs to call super
* to prevent MC-136995.
*/
// TODO: rename in 1.19 to onRemovedFromLevel
void onRemovedFromWorld();
/**