public class PokeGiftTileEntity
extends net.minecraft.tileentity.TileEntity
Constructor and Description |
---|
PokeGiftTileEntity() |
Modifier and Type | Method and Description |
---|---|
void |
addClaimer(java.util.UUID playerID)
Registers a player who has claimed the Poké Gift.
|
boolean |
canClaim(java.util.UUID playerID)
Checks if a player can claim the Poké Gift.
|
boolean |
getChestMode()
Gets whether the chest can only be claimed once before disappearing.
|
boolean |
getDropMode()
Gets whether the chest can only be claimed once per player.
|
EnumPokegiftType |
getGiftType()
Gets the Poké Gift's type.
|
LootClaim |
getLootClaim(java.util.UUID playerID)
Gets the identifier for a player who has claimed the Poké Gift.
|
java.util.UUID |
getOwner()
Gets the UUID of the Poké Gift's owner.
|
Pokemon |
getPokemon()
Gets the Pokémon inside the Poké Gift.
|
Pokemon |
getPokemonCopy()
Gets a copy of the Pokémon inside the Poké Gift.
|
java.util.List<PokemonSpecification> |
getSpecialPixelmon()
Gets the special Pokémon inside the Poké Gift.
|
net.minecraft.network.play.server.SUpdateTileEntityPacket |
getUpdatePacket() |
net.minecraft.nbt.CompoundNBT |
getUpdateTag() |
EnumPokechestVisibility |
getVisibility()
Gets the visibility setting of the Poké Gift.
|
boolean |
isUsableByPlayer(net.minecraft.entity.player.PlayerEntity player)
Checks if a player is close enough to interact with the Poké Gift.
|
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tagger) |
void |
removeClaimer(java.util.UUID playerID)
Removes a player from the list of players who have claimed the Poké Gift.
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT compound) |
void |
setAllSpecialPixelmon(java.util.List<PokemonSpecification> pixelmon)
Sets the special Pokémon inside the Poké Gift.
|
void |
setChestOneTime(boolean val)
Sets whether the chest can only be claimed once before disappearing.
|
void |
setDropOneTime(boolean val)
Sets whether the chest can only be claimed once per player.
|
void |
setOwner(java.util.UUID id)
Sets the UUID of the Poké Gift's owner.
|
void |
setPokemon(Pokemon pokemon)
Sets the Pokémon inside the Poké Gift.
|
void |
setSpecialPixelmon(PokemonSpecification pixelmon)
Adds a special Pokémon to the Poké Gift.
|
void |
setType(EnumPokegiftType t)
Sets the Poké Gift's type.
|
void |
setVisibility(EnumPokechestVisibility visible)
Sets the visibility setting of the Poké Gift.
|
boolean |
shouldBreakBlock()
Checks if claiming the Poké Gift will make it disappear.
|
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setOwner(java.util.UUID id)
id
- The UUID of the Poké Gift's owner.public java.util.UUID getOwner()
public void setType(EnumPokegiftType t)
t
- The Poké Gift's type.public EnumPokegiftType getGiftType()
public net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT compound)
save
in class net.minecraft.tileentity.TileEntity
public void load(net.minecraft.block.BlockState state, net.minecraft.nbt.CompoundNBT tagger)
load
in class net.minecraft.tileentity.TileEntity
public net.minecraft.network.play.server.SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class net.minecraft.tileentity.TileEntity
public net.minecraft.nbt.CompoundNBT getUpdateTag()
getUpdateTag
in class net.minecraft.tileentity.TileEntity
public boolean canClaim(java.util.UUID playerID)
playerID
- The UUID of the player attempting to claim the Poké Gift.public LootClaim getLootClaim(java.util.UUID playerID)
playerID
- The UUID of the player attempting to claim the Poké Gift.public void addClaimer(java.util.UUID playerID)
playerID
- The UUID of the player who has claimed the Poké Gift.public void removeClaimer(java.util.UUID playerID)
playerID
- The UUID of the player to remove.public boolean shouldBreakBlock()
public void setChestOneTime(boolean val)
val
- Whether the chest can only be claimed once before disappearing.public boolean getChestMode()
public void setDropOneTime(boolean val)
val
- Whether the chest can only be claimed once per player.public boolean getDropMode()
public boolean isUsableByPlayer(net.minecraft.entity.player.PlayerEntity player)
player
- The player attempting to interact with the Poké Gift.public Pokemon getPokemonCopy()
public Pokemon getPokemon()
public void setPokemon(Pokemon pokemon)
pokemon
- The Pokémon inside the Poké Gift.public java.util.List<PokemonSpecification> getSpecialPixelmon()
public void setAllSpecialPixelmon(java.util.List<PokemonSpecification> pixelmon)
pixelmon
- The special Pokémon inside the Poké Gift.public void setSpecialPixelmon(PokemonSpecification pixelmon)
pixelmon
- The special Pokémon to put inside the Poké Gift.public EnumPokechestVisibility getVisibility()
public void setVisibility(EnumPokechestVisibility visible)
visible
- The visibility setting of the Poké Gift.