Interface GeyserIntEntityProperty

All Superinterfaces:
GeyserEntityProperty<Integer>

public interface GeyserIntEntityProperty extends GeyserEntityProperty<Integer>
Represents an int-backed entity property with inclusive bounds. There are a few key limitations:
  • Values must be always within the [min(), max()] bounds
  • Molang evaluation uses floats under the hood; very large integers can lose precision. Prefer keeping values in a practical range to avoid rounding issues.
Since:
2.9.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    max()
     
    int
    min()
     

    Methods inherited from interface org.geysermc.geyser.api.entity.property.GeyserEntityProperty

    defaultValue, identifier
  • Method Details

    • min

      int min()
      Returns:
      the inclusive lower bound for this property
      Since:
      2.9.0
    • max

      int max()
      Returns:
      the inclusive upper bound for this property
      Since:
      2.9.0