Interface IForgeLevel

All Superinterfaces:
ICapabilityProvider
All Known Implementing Classes:
ClientLevel, Level, ServerLevel

public interface IForgeLevel extends ICapabilityProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    The maximum radius to scan for entities when trying to check bounding boxes.
    double
    increaseMaxEntityRadius​(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 Details

    • 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