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-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.StatueEvent
StatueEvent.CreateStatue, StatueEvent.DestroyStatue, StatueEvent.ModifyStatue
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.core.BlockPos
The specific block location the statue will be placed atfinal net.minecraft.server.level.ServerLevel
The world in which the statue is being createdFields inherited from class com.pixelmonmod.pixelmon.api.events.StatueEvent
player
-
Constructor Summary
ConstructorsConstructorDescriptionCreateStatue
(net.minecraft.server.level.ServerPlayer player, net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos location, StatueEntity statue) -
Method Summary
Modifier and TypeMethodDescriptionGets the statue that is currently planned to be placed downvoid
setStatue
(StatueEntity statue) Sets the statue that will be placed down.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
world
public final net.minecraft.server.level.ServerLevel worldThe world in which the statue is being created -
location
public final net.minecraft.core.BlockPos locationThe 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
Gets the statue that is currently planned to be placed down -
setStatue
Sets the statue that will be placed down. This can be any EntityStatue but it cannot be null
-