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
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
Modifier 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
ConstructorDescriptionCreateStatue
(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 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-