Class HealerTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.pixelmon.blocks.tileentity.HealerTileEntity
- All Implemented Interfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider
,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>
,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>
,net.minecraftforge.common.extensions.IForgeBlockEntity
,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class HealerTileEntity
extends net.minecraft.world.level.block.entity.BlockEntity
Heals a player's Pokémon upon interaction.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
int
net.minecraft.world.entity.player.Player
boolean
PokeBall[]
float
boolean
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
ConstructorDescriptionHealerTileEntity
(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) HealerTileEntity
(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionint
float
getOwner()
net.minecraft.world.entity.player.Player
PokeBall[]
int
float
int
net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
net.minecraft.nbt.CompoundTag
boolean
boolean
boolean
boolean
void
load
(net.minecraft.nbt.CompoundTag compound) void
onDataPacket
(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) void
saveAdditional
(net.minecraft.nbt.CompoundTag compound) void
setColor
(net.minecraft.world.item.DyeColor dyeColor) void
static void
tick
(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, HealerTileEntity blockEntity) void
use
(NPCNurseJoy npc, net.minecraft.world.entity.player.Player player) Starts the healer when a doctor uses it.void
use
(net.minecraft.world.entity.player.Player player) Starts the healer when a player uses it.Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
beingUsed
public boolean beingUsed -
pokeballType
-
player
public net.minecraft.world.entity.player.Player player -
rotation
public float rotation -
flashTimer
public int flashTimer -
allPlaced
public boolean allPlaced -
playSound
public boolean playSound -
stayDark
public boolean stayDark
-
-
Constructor Details
-
HealerTileEntity
public HealerTileEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
HealerTileEntity
public HealerTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
use
Starts the healer when a doctor uses it.- Parameters:
npc
- The doctor using the healer.player
- The player interacting with the doctor.
-
use
public void use(net.minecraft.world.entity.player.Player player) Starts the healer when a player uses it.- Parameters:
player
- The player using the healer.
-
setColor
public void setColor(net.minecraft.world.item.DyeColor dyeColor) -
getOwnerUUID
-
setOwner
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag compound) - Overrides:
saveAdditional
in classnet.minecraft.world.level.block.entity.BlockEntity
-
load
public void load(net.minecraft.nbt.CompoundTag compound) - Overrides:
load
in classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTag
in classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdatePacket
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()- Overrides:
getUpdatePacket
in classnet.minecraft.world.level.block.entity.BlockEntity
-
onDataPacket
public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) -
getOwner
-
isBeingUsed
public boolean isBeingUsed() -
getPokeballType
-
getStorage
-
getPlayer
public net.minecraft.world.entity.player.Player getPlayer() -
getPokemonLastPlaced
public int getPokemonLastPlaced() -
getHealingRate
public float getHealingRate() -
getTickCount
public int getTickCount() -
getRotation
public float getRotation() -
getFlashTimer
public int getFlashTimer() -
isAllPlaced
public boolean isAllPlaced() -
isPlaySound
public boolean isPlaySound() -
isStayDark
public boolean isStayDark() -
tick
public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, HealerTileEntity blockEntity)
-