mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
Fix entity parts being ignored when collecting entities in an AABB (#8588)
Previously entity parts are only taken into consideration when the parent entity is in a chunk that intersects with the AABB
This commit is contained in:
1 parent
1493d06b5a
commit
c042dc5542
4 files changed
+83
-19
No files matched your search
@@ -5,7 +5,11 @@
|
||||
|
||||
package net.minecraftforge.common.extensions;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
import net.minecraftforge.common.capabilities.ICapabilityProvider;
|
||||
import net.minecraftforge.entity.PartEntity;
|
||||
|
||||
public interface IForgeLevel extends ICapabilityProvider
|
||||
{
|
||||
@@ -22,4 +26,12 @@ public interface IForgeLevel extends ICapabilityProvider
|
||||
* @return The new max radius
|
||||
*/
|
||||
public double increaseMaxEntityRadius(double value);
|
||||
/**
|
||||
* All part entities in this world. Used when collecting entities in an AABB to fix parts being
|
||||
* ignored whose parent entity is in a chunk that does not intersect with the AABB.
|
||||
*/
|
||||
public default Collection<PartEntity<?>> getPartEntities()
|
||||
{
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user