Class StatueEvent.CreateStatue

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.StatueEvent
com.pixelmonmod.pixelmon.api.events.StatueEvent.CreateStatue
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
StatueEvent

public static class StatueEvent.CreateStatue extends StatueEvent implements net.neoforged.bus.api.ICancellableEvent
Subclass event of StatueEvent fired whenever a chisel is used to create a statue. Canceling this event prevents the statue from being created
  • 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