Class StatueEvent.CreateStatue

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

public static class StatueEvent.CreateStatue extends StatueEvent
Subclass event of StatueEvent fired whenever a chisel is used to create a statue. Canceling this event prevents the statue from being created
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.StatueEvent

    StatueEvent.CreateStatue, StatueEvent.DestroyStatue, StatueEvent.ModifyStatue

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.core.BlockPos
    The specific block location the statue will be placed at
    final net.minecraft.server.level.ServerLevel
    The world in which the statue is being created

    Fields inherited from class com.pixelmonmod.pixelmon.api.events.StatueEvent

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreateStatue(net.minecraft.server.level.ServerPlayer player, net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos location, StatueEntity statue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the statue that is currently planned to be placed down
    void
    Sets the statue that will be placed down.

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • world

      public final net.minecraft.server.level.ServerLevel world
      The world in which the statue is being created
    • location

      public final net.minecraft.core.BlockPos location
      The specific block location the statue will be placed at
  • Constructor Details

    • CreateStatue

      public CreateStatue(net.minecraft.server.level.ServerPlayer player, net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos location, StatueEntity statue)
  • Method Details

    • getStatue

      public StatueEntity getStatue()
      Gets the statue that is currently planned to be placed down
    • setStatue

      public void setStatue(StatueEntity statue)
      Sets the statue that will be placed down. This can be any EntityStatue but it cannot be null