Interface IForgeWorld
-
- All Superinterfaces:
ICapabilityProvider
- All Known Subinterfaces:
IForgeWorldServer
- All Known Implementing Classes:
ClientWorld,ServerWorld,World
public interface IForgeWorld extends ICapabilityProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description doublegetMaxEntityRadius()The maximum radius to scan for entities when trying to check bounding boxes.default java.util.Collection<PartEntity<?>>getPartEntities()All part entities in this world.doubleincreaseMaxEntityRadius(double value)Increases the max entity radius, this is safe to call with any value.-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
-
-
-
-
Method Detail
-
getMaxEntityRadius
double getMaxEntityRadius()
The maximum radius to scan for entities when trying to check bounding boxes. Vanilla's default is 2.0D But mods that add larger entities may increase this.
-
increaseMaxEntityRadius
double increaseMaxEntityRadius(double value)
Increases the max entity radius, this is safe to call with any value. The setter will verify the input value is larger then the current setting.- Parameters:
value- New max radius to set.- Returns:
- The new max radius
-
getPartEntities
default java.util.Collection<PartEntity<?>> getPartEntities()
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.
-
-