public class BattleRuleOwnedTileEntity extends OwnedTileEntity
Modifier and Type | Field and Description |
---|---|
protected int |
deckSize |
protected int |
eloMinimum |
protected java.lang.String |
endingCommand |
protected java.lang.String |
endingMessage |
protected boolean |
isShadowGame |
protected int |
prizeCount |
protected java.lang.String |
startingCommand
The commands stored in the battle block.
|
protected java.lang.String |
startingMessage |
protected int |
timeLimit
Time limit in seconds
|
Constructor and Description |
---|
BattleRuleOwnedTileEntity(net.minecraft.tileentity.TileEntityType<?> type) |
Modifier and Type | Method and Description |
---|---|
void |
deserializeNBT(net.minecraft.nbt.CompoundNBT nbt) |
void |
endGame(PlayerServerState winner,
PlayerServerState loser,
boolean tiedGame) |
java.lang.String |
formatCommand(java.lang.String command,
java.lang.String winnerName,
java.lang.String loserName) |
int |
getDeckSize() |
int |
getEloMinimum() |
java.lang.String |
getEndingCommand() |
java.lang.String |
getEndingMessage() |
java.lang.String |
getName() |
int |
getPrizeCount() |
net.minecraft.server.MinecraftServer |
getServer() |
java.lang.String |
getStartingCommand() |
java.lang.String |
getStartingMessage() |
int |
getTimeLimit() |
boolean |
isShadowGame() |
net.minecraft.nbt.CompoundNBT |
serializeNBT() |
void |
setDeckSize(int deckSize) |
void |
setEloMinimum(int eloMinimum) |
void |
setEndingCommand(java.lang.String endingCommand) |
void |
setEndingMessage(java.lang.String endingMessage) |
void |
setPrizeCount(int prizeCount) |
void |
setShadowGame(boolean b) |
void |
setStartingCommand(java.lang.String startingCommand) |
void |
setStartingMessage(java.lang.String startingMessage) |
void |
setTimeLimit(int timeLimit) |
void |
toggleShadowGame() |
int |
trigger(net.minecraft.world.World world,
java.lang.String command,
java.lang.String winnerName,
java.lang.String loserName) |
getOwnerId, getUpdatePacket, onDataPacket, setOwnerId
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdateTag, getViewDistance, hasLevel, isRemoved, load, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, save, 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
protected int deckSize
protected int prizeCount
protected int eloMinimum
protected java.lang.String startingCommand
protected java.lang.String endingCommand
protected java.lang.String startingMessage
protected java.lang.String endingMessage
protected int timeLimit
protected boolean isShadowGame
public BattleRuleOwnedTileEntity(net.minecraft.tileentity.TileEntityType<?> type)
public void deserializeNBT(net.minecraft.nbt.CompoundNBT nbt)
deserializeNBT
in interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT
in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundNBT>
deserializeNBT
in class OwnedTileEntity
public net.minecraft.nbt.CompoundNBT serializeNBT()
serializeNBT
in interface net.minecraftforge.common.extensions.IForgeTileEntity
serializeNBT
in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundNBT>
serializeNBT
in class OwnedTileEntity
public int trigger(net.minecraft.world.World world, java.lang.String command, java.lang.String winnerName, java.lang.String loserName)
public java.lang.String formatCommand(java.lang.String command, java.lang.String winnerName, java.lang.String loserName)
public int getDeckSize()
public void setDeckSize(int deckSize)
public int getTimeLimit()
public int getPrizeCount()
public void setPrizeCount(int prizeCount)
public int getEloMinimum()
public void setEloMinimum(int eloMinimum)
public java.lang.String getStartingCommand()
public void setStartingCommand(java.lang.String startingCommand)
public java.lang.String getEndingCommand()
public void setEndingCommand(java.lang.String endingCommand)
public java.lang.String getStartingMessage()
public void setStartingMessage(java.lang.String startingMessage)
public java.lang.String getEndingMessage()
public void setEndingMessage(java.lang.String endingMessage)
public void setTimeLimit(int timeLimit)
public java.lang.String getName()
@Nullable public net.minecraft.server.MinecraftServer getServer()
public void endGame(PlayerServerState winner, PlayerServerState loser, boolean tiedGame)
public boolean isShadowGame()
public void setShadowGame(boolean b)
public void toggleShadowGame()