Package com.pixelmonmod.tcg.tileentity
Class BattleRuleOwnedTileEntity
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.BattleRuleOwnedTileEntity
- 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>
- Direct Known Subclasses:
BattleOwnedTileEntityController
-
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 TypeFieldDescriptionprotected int
protected int
protected String
protected String
protected boolean
protected int
protected String
The commands stored in the battle block.protected String
protected int
Time limit in secondsFields 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
ConstructorDescriptionBattleRuleOwnedTileEntity
(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) void
endGame
(PlayerServerState winner, PlayerServerState loser, boolean tiedGame) formatCommand
(String command, String winnerName, String loserName) int
int
getName()
int
net.minecraft.server.MinecraftServer
int
boolean
net.minecraft.nbt.CompoundTag
void
setDeckSize
(int deckSize) void
setEloMinimum
(int eloMinimum) void
setEndingCommand
(String endingCommand) void
setEndingMessage
(String endingMessage) void
setPrizeCount
(int prizeCount) void
setShadowGame
(boolean b) void
setStartingCommand
(String startingCommand) void
setStartingMessage
(String startingMessage) void
setTimeLimit
(int timeLimit) void
int
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
-
Field Details
-
deckSize
protected int deckSize -
prizeCount
protected int prizeCount -
eloMinimum
protected int eloMinimum -
startingCommand
The commands stored in the battle block. -
endingCommand
-
startingMessage
-
endingMessage
-
timeLimit
protected int timeLimitTime limit in seconds -
isShadowGame
protected boolean isShadowGame
-
-
Constructor Details
-
BattleRuleOwnedTileEntity
public BattleRuleOwnedTileEntity(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
-
trigger
-
formatCommand
-
getDeckSize
public int getDeckSize() -
setDeckSize
public void setDeckSize(int deckSize) -
getTimeLimit
public int getTimeLimit() -
getPrizeCount
public int getPrizeCount() -
setPrizeCount
public void setPrizeCount(int prizeCount) -
getEloMinimum
public int getEloMinimum() -
setEloMinimum
public void setEloMinimum(int eloMinimum) -
getStartingCommand
-
setStartingCommand
-
getEndingCommand
-
setEndingCommand
-
getStartingMessage
-
setStartingMessage
-
getEndingMessage
-
setEndingMessage
-
setTimeLimit
public void setTimeLimit(int timeLimit) -
getName
-
getServer
@Nullable public net.minecraft.server.MinecraftServer getServer() -
endGame
-
isShadowGame
public boolean isShadowGame() -
setShadowGame
public void setShadowGame(boolean b) -
toggleShadowGame
public void toggleShadowGame()
-