mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Kept newly added methods for binary compatibility but deprecated them all for removal. The entire pose/eye/size system needs to be reevaluated and address some of Mojang's changes. However this should fix any bugs that pulling that PR may of caused.
This commit is contained in:
1 parent
93a615e900
commit
f157567d2a
5 files changed
+47
-120
No files matched your search
@@ -430,12 +430,10 @@ public interface IForgeEntity extends ICapabilitySerializable<CompoundTag>
|
||||
return false;
|
||||
}
|
||||
|
||||
@Deprecated(forRemoval = true, since = "1.20.1") // Remove Entity Eye/Size hooks, as they need to be redesigned
|
||||
default float getEyeHeightForge(Pose pose, EntityDimensions size)
|
||||
{
|
||||
float eyeHeight = self().getEyeHeightAccess(pose, size);
|
||||
EntityEvent.EyeHeight evt = new EntityEvent.EyeHeight(self(), pose, size, eyeHeight);
|
||||
MinecraftForge.EVENT_BUS.post(evt);
|
||||
return evt.getNewEyeHeight();
|
||||
return self().getEyeHeightAccess(pose, size);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user