public static class StatueEvent.ModifyStatue extends StatueEvent
StatueEvent
fired when any of the EntityStatue
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
StatueEvent.CreateStatue, StatueEvent.DestroyStatue, StatueEvent.ModifyStatue
Modifier and Type | Field and Description |
---|---|
EnumStatuePacketMode |
changeType
The specific change being made as a member of
EnumStatuePacketMode |
player
Constructor and Description |
---|
ModifyStatue(net.minecraft.entity.player.EntityPlayerMP player,
EntityStatue statue,
EnumStatuePacketMode changeType,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
EntityStatue |
getStatue()
Gets the statue that is being modified
|
java.lang.Object |
getValue()
Gets the value for the property.
|
void |
setStatue(EntityStatue statue)
Sets the statue after the modification.
|
void |
setValue(java.lang.Object value)
Sets the value for the property.
|
public final EnumStatuePacketMode changeType
EnumStatuePacketMode
public ModifyStatue(net.minecraft.entity.player.EntityPlayerMP player, EntityStatue statue, EnumStatuePacketMode changeType, java.lang.Object value)
public java.lang.Object getValue()
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
public void setValue(java.lang.Object value)
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
public EntityStatue getStatue()
public void setStatue(EntityStatue statue)