Class EncounterData
java.lang.Object
com.pixelmonmod.pixelmon.api.util.EncounterData
Created by Jay113355 on 5/31/2021.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EnumEncounterMode
The default encounter mode, usually from the config.protected long
protected EnumEncounterMode
The encounter mode loaded from nbt, this overrides the default mode provided from the config. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEncounter
(UUID player, long time) boolean
canEncounter
(net.minecraft.world.entity.player.Player player) getMode()
void
read
(net.minecraft.nbt.CompoundTag compound) void
registerEncounter
(net.minecraft.world.entity.player.Player player) net.minecraft.nbt.CompoundTag
write
(net.minecraft.nbt.CompoundTag compound)
-
Field Details
-
defaultMode
The default encounter mode, usually from the config. This can be overridden on a per block basis via nbt -
mode
The encounter mode loaded from nbt, this overrides the default mode provided from the config. -
lastEncounter
protected long lastEncounter -
playerEncounters
-
-
Constructor Details
-
EncounterData
-
-
Method Details
-
canEncounter
public boolean canEncounter(net.minecraft.world.entity.player.Player player) -
registerEncounter
public void registerEncounter(net.minecraft.world.entity.player.Player player) -
addEncounter
-
getMode
-
write
public net.minecraft.nbt.CompoundTag write(net.minecraft.nbt.CompoundTag compound) -
read
public void read(net.minecraft.nbt.CompoundTag compound)
-