public static class DayCareEvent.PostConditionStatusUpdate extends DayCareEvent
DayCareEvent.HourGlassUsed, DayCareEvent.PostCollect, DayCareEvent.PostConditionStatusUpdate, DayCareEvent.PostDurationCalculate, DayCareEvent.PostEggCalculate, DayCareEvent.PostPokemonAdd, DayCareEvent.PostTimerBegin, DayCareEvent.PreCollect, DayCareEvent.PreConditionStatusUpdate, DayCareEvent.PreDurationCalculate, DayCareEvent.PreEggCalculate, DayCareEvent.PrePokemonAdd, DayCareEvent.PreTimerBegin, DayCareEvent.TimerComplete
Modifier and Type | Field and Description |
---|---|
protected DayCareBox |
box |
protected boolean |
canConsume |
protected DayCareCondition |
condition |
protected net.minecraft.util.text.ITextComponent |
errorMessage |
protected DayCareRequirement |
requirement |
Constructor and Description |
---|
PostConditionStatusUpdate(net.minecraft.entity.player.ServerPlayerEntity player,
PlayerPartyStorage party,
DayCareBox box,
DayCareCondition condition,
DayCareRequirement requirement,
boolean canConsume,
net.minecraft.util.text.ITextComponent errorMessage) |
Modifier and Type | Method and Description |
---|---|
DayCareBox |
getBox()
Gets the box this is in relation to
|
DayCareCondition |
getCondition()
Gets the condition being used
|
net.minecraft.util.text.ITextComponent |
getErrorMessage()
Gets the error message to display to the client
Only displayed if
DayCareEvent.PreConditionStatusUpdate.isCanConsume() is false |
DayCareRequirement |
getRequirement()
Gets the requirement being used
|
boolean |
isCanConsume()
If the inventory can consume the requirement (i.e.
|
getDayCare, getParty, getPlayer
protected final DayCareBox box
protected final DayCareCondition condition
protected final DayCareRequirement requirement
protected final boolean canConsume
protected final net.minecraft.util.text.ITextComponent errorMessage
public PostConditionStatusUpdate(net.minecraft.entity.player.ServerPlayerEntity player, PlayerPartyStorage party, DayCareBox box, DayCareCondition condition, DayCareRequirement requirement, boolean canConsume, net.minecraft.util.text.ITextComponent errorMessage)
public DayCareBox getBox()
public DayCareCondition getCondition()
public DayCareRequirement getRequirement()
public boolean isCanConsume()
public net.minecraft.util.text.ITextComponent getErrorMessage()
DayCareEvent.PreConditionStatusUpdate.isCanConsume()
is false