Package com.pixelmonmod.tcg.tileentity
Class BattleSpectatorOwnedTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.tcg.tileentity.OwnedTileEntity
com.pixelmonmod.tcg.tileentity.BattleSpectatorOwnedTileEntity
- 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>
-
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
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
ConstructorDescriptionBattleSpectatorOwnedTileEntity
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) BattleSpectatorOwnedTileEntity
(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deserializeNBT
(net.minecraft.nbt.CompoundTag nbt) net.minecraft.core.BlockPos
int
net.minecraft.nbt.CompoundTag
void
setControllerPosition
(net.minecraft.core.BlockPos controllerPosition) void
setPlayerIndex
(int playerIndex) Methods inherited from class com.pixelmonmod.tcg.tileentity.OwnedTileEntity
getOwnerId, getUpdatePacket, onDataPacket, setOwnerId
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdateTag, hasLevel, isRemoved, load, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveAdditional, 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
getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate
-
Constructor Details
-
BattleSpectatorOwnedTileEntity
public BattleSpectatorOwnedTileEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
BattleSpectatorOwnedTileEntity
public BattleSpectatorOwnedTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
deserializeNBT
public void deserializeNBT(net.minecraft.nbt.CompoundTag nbt) - Specified by:
deserializeNBT
in interfacenet.minecraftforge.common.extensions.IForgeBlockEntity
- Specified by:
deserializeNBT
in interfacenet.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- Overrides:
deserializeNBT
in classOwnedTileEntity
-
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT()- Specified by:
serializeNBT
in interfacenet.minecraftforge.common.extensions.IForgeBlockEntity
- Specified by:
serializeNBT
in interfacenet.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- Overrides:
serializeNBT
in classOwnedTileEntity
-
getBattleController
-
getControllerPosition
public net.minecraft.core.BlockPos getControllerPosition() -
setControllerPosition
public void setControllerPosition(net.minecraft.core.BlockPos controllerPosition) -
getPlayerIndex
public int getPlayerIndex() -
setPlayerIndex
public void setPlayerIndex(int playerIndex)
-