Class StatueEvent.ModifyStatue

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.StatueEvent
com.pixelmonmod.pixelmon.api.events.StatueEvent.ModifyStatue
Enclosing class:
StatueEvent

public static class StatueEvent.ModifyStatue extends StatueEvent
Subclass event of StatueEvent fired when any of the StatueEntity properties is changed. This can be any member of EnumStatuePacketMode's options

Canceling this event will deny the specific change to the statue, though the client may become out of sync temporarily

  • Field Details

  • Constructor Details

  • Method Details

    • getValue

      public Object getValue()
      Gets the value for the property. This depends on the changeType.

      String value is given: SetName, SetLabel, SetAnimation

      Integer value is given: SetAnimationFrame, SetForm

      EnumGrowth value is given: SetGrowth

      EnumStatueTextureType is given: SetTextureType

      Boolean value is given: SetModelStanding

    • setValue

      public void setValue(Object value)
      Sets the value for the property. This depends on the changeType.

      String value is required: SetName, SetLabel, SetAnimation

      Integer value is required: SetAnimationFrame, SetForm

      EnumGrowth value is required: SetGrowth

      EnumStatueTextureType is required: SetTextureType

      Boolean value is required: SetModelStanding

    • getStatue

      public StatueEntity getStatue()
      Gets the statue that is being modified
    • setStatue

      public void setStatue(StatueEntity statue)
      Sets the statue after the modification. This can be a completely different EntityStatue if you wish, but it cannot be null