mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix regressions for onAddedTo/RemovedFromWorld and related events (#8434)
This commit is contained in:
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();
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user