Class BoxCountCalculateEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.storage.BoxCountCalculateEvent
- Direct Known Subclasses:
BoxCountCalculateEvent.Post
,BoxCountCalculateEvent.Pre
public class BoxCountCalculateEvent
extends net.minecraftforge.eventbus.api.Event
This event is fired when trying to calculate how many boxes a given
target (
No sub-events are cancellable as this information is important, and necessary.
UUID
, typically player} has access to. If the
box count is not overridden using the BoxCountCalculateEvent.Pre
event then
it will default to the value found in the storage.yml file.
No sub-events are cancellable as this information is important, and necessary.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired immediately after theBoxCountCalculateEvent.Pre
and should be used to observe what the box count is finally decided to bestatic class
Event fired before the box number has been decided
This is not cancellable as this information is always necessaryNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
uuid
-
boxCount
protected int boxCount
-
-
Constructor Details
-
BoxCountCalculateEvent
-
-
Method Details
-
getUuid
-
getBoxCount
public int getBoxCount() -
getPlayer
@Nullable public net.minecraft.server.level.ServerPlayer getPlayer()
-