public class TileEntitySecurityStation extends TileEntityTickableBase implements IRedstoneControl<TileEntitySecurityStation>, net.minecraft.inventory.container.INamedContainerProvider, IRangedTE
| Modifier and Type | Class and Description |
|---|---|
static class |
TileEntitySecurityStation.EnumNetworkValidityProblem |
static class |
TileEntitySecurityStation.Listener |
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
java.util.List<com.mojang.authlib.GameProfile> |
hackedUsers |
static int |
INV_COLS |
static int |
INV_ROWS |
RedstoneController<TileEntitySecurityStation> |
rsController |
java.util.List<com.mojang.authlib.GameProfile> |
sharedUsers |
| Constructor and Description |
|---|
TileEntitySecurityStation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHacker(com.mojang.authlib.GameProfile user) |
void |
addTrustedUser(com.mojang.authlib.GameProfile user) |
TileEntitySecurityStation.EnumNetworkValidityProblem |
checkForNetworkValidity()
Method used to update the check of the validity of the network.
|
void |
clearRemoved() |
boolean |
connects(int firstSlot,
int secondSlot)
Check if the given slots are connected in the network.
|
net.minecraft.inventory.container.Container |
createMenu(int i,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity) |
boolean |
doesAllowPlayer(net.minecraft.entity.player.PlayerEntity player)
Check if the given player is allowed to interact within the covered area of this Security Station.
|
int |
findComponent(ItemNetworkComponent.NetworkComponentType type) |
int |
getDetectionChance() |
me.desht.pneumaticcraft.common.tileentity.TileEntitySecurityStation.HackingContainerProvider |
getHackingContainerProvider() |
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> |
getInventoryCap() |
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
static int |
getProtectingSecurityStations(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
boolean isPlacingSecurityStation)
Get the number of security stations protecting the given blockpos from the given player.
|
RangeManager |
getRangeManager() |
int |
getRebootTime() |
RedstoneController<TileEntitySecurityStation> |
getRedstoneController()
Get the redstone controller object for this TE
|
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraft.util.math.AxisAlignedBB |
getSecurityCoverage() |
int |
getSecurityLevel() |
ISimulationController |
getSimulationController() |
void |
handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player) |
boolean |
hasPlayerHacked(net.minecraft.entity.player.PlayerEntity player) |
boolean |
hasValidNetwork() |
void |
initiateHacking(net.minecraft.entity.player.PlayerEntity hacker) |
boolean |
isGuiUseableByPlayer(net.minecraft.entity.player.PlayerEntity par1EntityPlayer) |
boolean |
isHacked() |
boolean |
isPlayerOnWhiteList(net.minecraft.entity.player.PlayerEntity player) |
static boolean |
isProtectedFromPlayer(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
boolean isPlacingSecurityStation)
Check if any security station is preventing the given player from interacting with the given blockpos.
|
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
void |
readFromPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
void |
rebootStation() |
void |
retaliate(net.minecraft.entity.player.PlayerEntity hacker) |
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
void |
setRemoved() |
void |
setSimulationController(ISimulationController newController) |
void |
tick() |
void |
writeToPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
addLuaMethods, clearCache, countPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getCapability, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, handleUpdateTag, onBlockRotated, onDescUpdate, onFirstServerTick, onGuiUpdate, onNeighborBlockUpdate, onNeighborTileUpdate, onUpgradesChanged, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setCustomName, setPreserveStateOnBreak, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighboursfillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentRedstonePower, getRedstoneMode, getRedstoneTabTitle, onRedstoneModeChangedgetDisplayNamegetRange, rangeTextpublic static final int INV_ROWS
public static final int INV_COLS
public final java.util.List<com.mojang.authlib.GameProfile> hackedUsers
public final java.util.List<com.mojang.authlib.GameProfile> sharedUsers
public final RedstoneController<TileEntitySecurityStation> rsController
public void setRemoved()
setRemoved in class TileEntityBasepublic void clearRemoved()
clearRemoved in class net.minecraft.tileentity.TileEntitypublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityTickableBasepublic void rebootStation()
public int getRebootTime()
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventoryCap()
getInventoryCap in class TileEntityBasepublic void handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player)
handleGUIButtonPress in interface IGUIButtonSensitivehandleGUIButtonPress in class TileEntityBasepublic me.desht.pneumaticcraft.common.tileentity.TileEntitySecurityStation.HackingContainerProvider getHackingContainerProvider()
public void addTrustedUser(com.mojang.authlib.GameProfile user)
public void addHacker(com.mojang.authlib.GameProfile user)
public boolean isHacked()
public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic net.minecraft.util.math.AxisAlignedBB getSecurityCoverage()
public void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
load in class TileEntityBasepublic net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT tag)
save in class TileEntityBasepublic void writeToPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase#write(CompoundNBT)
Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced,
or for non-ticking tile entities.writeToPacket in interface IDescSyncedwriteToPacket in class TileEntityBasetag - NBT tagpublic void readFromPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase#read(BlockState, CompoundNBT).
Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced,
or for non-ticking tile entities.readFromPacket in interface IDescSyncedreadFromPacket in class TileEntityBasetag - NBT tagpublic boolean doesAllowPlayer(net.minecraft.entity.player.PlayerEntity player)
player - the playerpublic boolean isPlayerOnWhiteList(net.minecraft.entity.player.PlayerEntity player)
public boolean hasPlayerHacked(net.minecraft.entity.player.PlayerEntity player)
public boolean connects(int firstSlot,
int secondSlot)
firstSlot - slot 1secondSlot - slot 2public boolean hasValidNetwork()
@Nullable
public net.minecraft.inventory.container.Container createMenu(int i,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity)
createMenu in interface net.minecraft.inventory.container.IContainerProviderpublic void initiateHacking(net.minecraft.entity.player.PlayerEntity hacker)
public int findComponent(ItemNetworkComponent.NetworkComponentType type)
public ISimulationController getSimulationController()
public void setSimulationController(ISimulationController newController)
public void retaliate(net.minecraft.entity.player.PlayerEntity hacker)
public RangeManager getRangeManager()
getRangeManager in interface IRangedTEpublic TileEntitySecurityStation.EnumNetworkValidityProblem checkForNetworkValidity()
public int getDetectionChance()
public int getSecurityLevel()
public boolean isGuiUseableByPlayer(net.minecraft.entity.player.PlayerEntity par1EntityPlayer)
isGuiUseableByPlayer in class TileEntityBasepublic net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBasepublic RedstoneController<TileEntitySecurityStation> getRedstoneController()
IRedstoneControlgetRedstoneController in interface IRedstoneControl<TileEntitySecurityStation>public static int getProtectingSecurityStations(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
boolean isPlacingSecurityStation)
player - the player who is trying to do something with the blockpos in questionpos - the blockpos whose protection is being checkedisPlacingSecurityStation - true when trying to place a security station, false otherwisepublic static boolean isProtectedFromPlayer(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
boolean isPlacingSecurityStation)
player - the player who is trying to do something with the blockpos in questionpos - the blockpos whose protection is being checkedisPlacingSecurityStation - true when trying to place a security station, false otherwise