Module gomint.api

Class PlayerExhaustEvent

    • Constructor Detail

      • PlayerExhaustEvent

        public PlayerExhaustEvent​(EntityPlayer player,
                                  float additionalAmount,
                                  PlayerExhaustEvent.Cause cause)
        Create a new event
        Parameters:
        player - for which this event is for
        additionalAmount - which gets added to the exhaust amount when this event is not cancelled
        cause - of this exhaustion
    • Method Detail

      • getAdditionalAmount

        public float getAdditionalAmount()
        Get the amount of value which gets added to the exhaustion level
        Returns:
        additional exhaustion level
      • setAdditionalAmount

        public void setAdditionalAmount​(float additionalAmount)
        Set the amount of additional exhaustion
        Parameters:
        additionalAmount - which should be added to the exhaustion