Class RaidData
java.lang.Object
com.pixelmonmod.pixelmon.battles.raids.data.RaidData
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()booleanintgetDen()getDenEntity(net.minecraft.world.level.Level world) net.minecraft.world.level.LevelgetLevel()getPlayer(net.minecraft.server.level.ServerPlayer ep) intgetStars()intgetTick()net.minecraft.core.Holder<RaidType> getType()booleanbooleanbooleanisOwner(net.minecraft.world.entity.player.Player player) booleanisSolo()booleanvoidkickAll(EnumRaidKickReason reason) voidlock()voidvoidvoidprocessIntent(RaidIntent intent, net.minecraft.server.level.ServerPlayer sender) static RaidDatareadFromNBT(DenEntity den, net.minecraft.nbt.CompoundTag nbt) booleanremovePlayer(net.minecraft.server.level.ServerPlayer ep) voidsetStarting(boolean starting) voidstart()voidvoidunlock()voidvoidwrite(net.minecraft.network.RegistryFriendlyByteBuf buf) net.minecraft.nbt.CompoundTagwriteToNBT(net.minecraft.core.HolderLookup.Provider registryAccess)
-
Field Details
-
EMPTY
-
canAllCatch
public final boolean canAllCatch -
canUseMaster
public final boolean canUseMaster
-
-
Constructor Details
-
RaidData
-
RaidData
public RaidData(net.minecraft.network.RegistryFriendlyByteBuf buf) -
RaidData
-
-
Method Details
-
writeToNBT
public net.minecraft.nbt.CompoundTag writeToNBT(net.minecraft.core.HolderLookup.Provider registryAccess) -
readFromNBT
-
getDen
public int getDen() -
getLevel
public net.minecraft.world.level.Level getLevel() -
getStars
public int getStars() -
getPokemon
-
getPlayers
-
getTick
public int getTick() -
getType
-
hasPlayers
public boolean hasPlayers() -
isSolo
public boolean isSolo() -
processIntent
-
lock
public void lock() -
unlock
public void unlock() -
start
public void start() -
updateAll
public void updateAll() -
kickAll
-
abort
public void abort() -
isStarting
public boolean isStarting() -
setStarting
public void setStarting(boolean starting) -
addPlayer
public boolean addPlayer(int playerCap, net.minecraft.server.level.ServerPlayer ep, Pokemon pokemon, int index) -
removePlayer
public boolean removePlayer(net.minecraft.server.level.ServerPlayer ep) -
getPlayer
-
getPlayer
-
getDenEntity
-
isOwner
public boolean isOwner(net.minecraft.world.entity.player.Player player) -
isOwner
-
onUpdate
-
populateWithNPCs
public void populateWithNPCs() -
startRaid
-
write
public void write(net.minecraft.network.RegistryFriendlyByteBuf buf)
-