public interface DayCareDuration
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.text.ITextComponent |
getDisplay()
Get the display TextComponent
|
java.lang.String |
getId()
The unique identifier of the day care duration logic
|
long |
getMillisecondValue(net.minecraft.entity.player.ServerPlayerEntity player,
DayCareBox box,
long currentTime)
Calculates the value in milliseconds that will get ADDED to the timestamp when the end timestamp is calculated
|
int |
getPriority()
Gets the duration type's priority (higher priority = will be calculated first)
|
void |
read(com.google.gson.Gson gson,
com.google.gson.JsonElement json)
Reads the duration from JSON
|
java.lang.String getId()
int getPriority()
long getMillisecondValue(net.minecraft.entity.player.ServerPlayerEntity player, DayCareBox box, long currentTime)
player
- The player this is relevant tobox
- The box this is relevant to from the playercurrentTime
- The already calculated timevoid read(com.google.gson.Gson gson, com.google.gson.JsonElement json)
gson
- The GSONjson
- The JSON elementnet.minecraft.util.text.ITextComponent getDisplay()