public class TileEntityProgrammableController extends TileEntityPneumaticBase implements IMinWorkingPressure, IDroneBase, ISideConfigurable, net.minecraft.inventory.container.INamedContainerProvider
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<net.minecraft.util.ResourceLocation> |
BLACKLISTED_WIDGETS |
boolean |
isIdle |
java.lang.String |
label |
java.lang.String |
ownerNameClient |
boolean |
shouldChargeHeldItem |
airHandler| Constructor and Description |
|---|
TileEntityProgrammableController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAirToDrone(int air) |
net.minecraft.util.Direction |
byIndex()
Return the (absolute) direction that this TE is facing.
|
boolean |
canMoveIntoFluid(net.minecraft.fluid.Fluid fluid) |
boolean |
chunkloadSelf() |
boolean |
chunkloadWorkingChunk() |
boolean |
chunkloadWorkingChunk3x3() |
net.minecraft.inventory.container.Container |
createMenu(int i,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity) |
void |
dropItem(net.minecraft.item.ItemStack stack)
Cause the drone to drop the given item at its position.
|
int |
getActiveWidgetIndex() |
DroneAIManager |
getAIManager() |
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
net.minecraft.util.Direction side) |
java.util.List<net.minecraft.entity.Entity> |
getCarryingEntities()
Get the list of entities currently carried by this drone.
|
void |
getContentsToDrop(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops)
Collect all items which should be dropped when this TE is broken.
|
net.minecraft.util.math.BlockPos |
getControllerPos()
Get the position of the drone's controller.
|
DroneDebugger |
getDebugger() |
net.minecraft.util.math.BlockPos |
getDeployPos()
Get the blockpos at which this drone was deployed (by player or dispenser).
|
DroneItemHandler |
getDroneItemHandler() |
net.minecraft.util.text.ITextComponent |
getDroneName() |
net.minecraft.util.math.vector.Vector3d |
getDronePos()
Get the drone's exact position.
|
float |
getDronePressure() |
net.minecraft.util.math.BlockPos |
getDugPosition() |
int |
getEmittingRedstone(net.minecraft.util.Direction direction) |
DroneFakePlayer |
getFakePlayer()
Get the fake player object for the drone.
|
net.minecraftforge.fluids.IFluidTank |
getFluidTank()
Get the drone's fluid tank.
|
net.minecraftforge.items.IItemHandlerModifiable |
getInv()
Get the drone's inventory.
|
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> |
getInventoryCap() |
java.lang.String |
getLabel() |
LogisticsManager |
getLogisticsManager() |
float |
getMinWorkingPressure()
Get the minimum pressure at which this machine can operate.
|
net.minecraft.entity.player.PlayerEntity |
getOwner()
Retrieve the owning player of this drone; i.e.
|
java.util.UUID |
getOwnerUUID()
Get the UUID of the drone's owner.
|
IPathNavigator |
getPathNavigator()
Get the drone's path navigator object.
|
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
java.util.List<IProgWidget> |
getProgWidgets() |
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
java.util.List<SideConfigurator<?>> |
getSideConfigurators()
Get a collection of all the side configurators this TE has
|
net.minecraft.entity.ai.goal.GoalSelector |
getTargetAI()
Get the drone's current collection of tasks.
|
net.minecraft.util.math.BlockPos |
getTargetPos() |
void |
handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player) |
boolean |
isAIOverridden()
Has the drone's normal tasks been overridden by special circumstances? E.g.
|
boolean |
isBlockValidPathfindBlock(net.minecraft.util.math.BlockPos pos)
Is the given position valid for pathfinding purposes? i.e.
|
boolean |
isDroneStillValid() |
boolean |
isProgramApplicable(ProgWidgetType<?> widgetType) |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
protected void |
onFirstServerTick() |
void |
onItemPickupEvent(net.minecraft.entity.item.ItemEntity curPickingUpEntity,
int stackSize)
Called when a drone is picking up an item.
|
void |
onSemiblockEvent(SemiblockEvent event) |
void |
onUpgradesChanged()
Called when a machine's upgrades have changed in any way.
|
void |
onVariableChanged(java.lang.String varname,
boolean isCoordinate) |
void |
overload(java.lang.String msgKey,
java.lang.Object... params) |
void |
playSound(net.minecraft.util.SoundEvent soundEvent,
net.minecraft.util.SoundCategory category,
float volume,
float pitch) |
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
void |
sendWireframeToClient(net.minecraft.util.math.BlockPos pos)
Send a position to the client to be rendered by the Pneumatic Helmet with Entity Tracker.
|
void |
setActiveProgram(IProgWidget widget) |
void |
setCarryingEntity(net.minecraft.entity.Entity entity)
Make the drone pick up the given entity.
|
void |
setDugBlock(net.minecraft.util.math.BlockPos pos)
Mark the given block as being dug.
|
void |
setEmittingRedstone(net.minecraft.util.Direction orientation,
int emittingRedstone)
Make the drone emit redstone in the given direction from its current position.
|
void |
setLogisticsManager(LogisticsManager logisticsManager) |
void |
setName(net.minecraft.util.text.ITextComponent name)
Set the drone's custom name.
|
void |
setOwner(net.minecraft.entity.player.PlayerEntity ownerID) |
void |
setRemoved() |
void |
storeTrackerData(net.minecraft.item.ItemStack stack) |
void |
tick() |
void |
updateLabel()
Sets the label that was jumped to last, with a hierarchy in case of External Programs.
|
net.minecraft.world.World |
world()
Get the drone's world.
|
addAir, addLuaMethods, canConnectPneumatic, forceLeak, getCriticalPressure, getDangerPressure, getDefaultVolume, getPressure, handleUpdateTag, hasNoConnectedAirHandlers, initializeHullAirHandlerClient, initializeHullAirHandlers, onBlockRotated, onNeighborBlockUpdate, readFromPacket, writeToPacketcountPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, isGuiUseableByPlayer, onDescUpdate, onGuiUpdate, onNeighborTileUpdate, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighboursclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActiveAIManager, getActiveWidget, resetAttackCountgetUpgradesgetCapabilityisValidpublic static final java.util.Set<net.minecraft.util.ResourceLocation> BLACKLISTED_WIDGETS
public boolean isIdle
public boolean shouldChargeHeldItem
public java.lang.String label
public java.lang.String ownerNameClient
public void onSemiblockEvent(SemiblockEvent event)
public void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityPneumaticBasepublic void onVariableChanged(java.lang.String varname,
boolean isCoordinate)
onVariableChanged in interface IDroneBasepublic void setRemoved()
setRemoved in class TileEntityPneumaticBasepublic java.util.UUID getOwnerUUID()
IDronegetOwnerUUID in interface IDronepublic net.minecraft.util.math.BlockPos getDeployPos()
IDronegetDeployPos in interface IDronepublic void handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player)
handleGUIButtonPress in interface IGUIButtonSensitivehandleGUIButtonPress in class TileEntityBasepublic net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBaseprotected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventoryCap()
getInventoryCap in class TileEntityBasepublic void setOwner(net.minecraft.entity.player.PlayerEntity ownerID)
public java.util.List<SideConfigurator<?>> getSideConfigurators()
ISideConfigurablegetSideConfigurators in interface ISideConfigurablepublic net.minecraft.util.Direction byIndex()
ISideConfigurablebyIndex in interface ISideConfigurable@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 onUpgradesChanged()
TileEntityBaseonUpgradesChanged in interface IUpgradeHolderonUpgradesChanged in class TileEntityPneumaticBasepublic void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
load in class TileEntityPneumaticBasepublic net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT tag)
save in class TileEntityPneumaticBase@Nonnull
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
@Nullable
net.minecraft.util.Direction side)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class TileEntityPneumaticBaseprotected void onFirstServerTick()
onFirstServerTick in class TileEntityPneumaticBasepublic float getMinWorkingPressure()
IMinWorkingPressuregetMinWorkingPressure in interface IMinWorkingPressurepublic net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic net.minecraft.world.World world()
IDronepublic net.minecraftforge.fluids.IFluidTank getFluidTank()
IDroneCapabilityFluidHandler.FLUID_HANDLER_CAPABILITY
capability.getFluidTank in interface IDronepublic net.minecraftforge.items.IItemHandlerModifiable getInv()
IDroneCapabilityItemHandler.ITEM_HANDLER_CAPABILITY capability.public net.minecraft.util.math.vector.Vector3d getDronePos()
IDronegetDronePos in interface IDronepublic net.minecraft.util.math.BlockPos getTargetPos()
public net.minecraft.util.math.BlockPos getControllerPos()
IDronegetControllerPos in interface IDronepublic IPathNavigator getPathNavigator()
IDronegetPathNavigator in interface IDronepublic void sendWireframeToClient(net.minecraft.util.math.BlockPos pos)
IDronesendWireframeToClient in interface IDronepos - a block positionpublic DroneFakePlayer getFakePlayer()
IDronegetFakePlayer in interface IDronepublic boolean isBlockValidPathfindBlock(net.minecraft.util.math.BlockPos pos)
IDrone
Custom pathfinding functionality may be added via IDroneRegistry.addPathfindableBlock(Block, IPathfindHandler).
isBlockValidPathfindBlock in interface IDronepos - a block positionpublic void dropItem(net.minecraft.item.ItemStack stack)
IDronepublic void getContentsToDrop(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops)
TileEntityBasegetContentsToDrop in class TileEntityBasedrops - list in which to collect dropped itemspublic void setDugBlock(net.minecraft.util.math.BlockPos pos)
IDronesetDugBlock in interface IDronepos - a block positionpublic net.minecraft.util.math.BlockPos getDugPosition()
public java.util.List<IProgWidget> getProgWidgets()
getProgWidgets in interface IDroneBasepublic void setActiveProgram(IProgWidget widget)
setActiveProgram in interface IDroneBasepublic boolean isProgramApplicable(ProgWidgetType<?> widgetType)
isProgramApplicable in interface IDroneBasepublic net.minecraft.entity.ai.goal.GoalSelector getTargetAI()
IDronegetTargetAI in interface IDronepublic void setEmittingRedstone(net.minecraft.util.Direction orientation,
int emittingRedstone)
IDronesetEmittingRedstone in interface IDroneorientation - the direction to emitemittingRedstone - the redstone levelpublic int getEmittingRedstone(net.minecraft.util.Direction direction)
public void setName(net.minecraft.util.text.ITextComponent name)
IDronepublic void setCarryingEntity(net.minecraft.entity.Entity entity)
IDronesetCarryingEntity in interface IDroneentity - an entity to pick up, or null to drop any currently-held entitypublic java.util.List<net.minecraft.entity.Entity> getCarryingEntities()
IDronegetCarryingEntities in interface IDronepublic boolean isAIOverridden()
IDroneisAIOverridden in interface IDronepublic void onItemPickupEvent(net.minecraft.entity.item.ItemEntity curPickingUpEntity,
int stackSize)
IDroneonItemPickupEvent in interface IDronecurPickingUpEntity - the item entitystackSize - the size of the itemstack in the item entitypublic net.minecraft.entity.player.PlayerEntity getOwner()
IDronepublic void overload(java.lang.String msgKey,
java.lang.Object... params)
overload in interface IDroneBasepublic DroneAIManager getAIManager()
getAIManager in interface IDroneBasepublic void updateLabel()
IDroneBaseupdateLabel in interface IDroneBasepublic LogisticsManager getLogisticsManager()
getLogisticsManager in interface IDroneBasepublic void setLogisticsManager(LogisticsManager logisticsManager)
setLogisticsManager in interface IDroneBasepublic void playSound(net.minecraft.util.SoundEvent soundEvent,
net.minecraft.util.SoundCategory category,
float volume,
float pitch)
playSound in interface IDroneBasepublic void addAirToDrone(int air)
addAirToDrone in interface IDroneBasepublic boolean canMoveIntoFluid(net.minecraft.fluid.Fluid fluid)
canMoveIntoFluid in interface IDroneBasepublic DroneItemHandler getDroneItemHandler()
getDroneItemHandler in interface IDroneBasepublic float getDronePressure()
getDronePressure in interface IDroneBasepublic int getActiveWidgetIndex()
getActiveWidgetIndex in interface IDroneBasepublic DroneDebugger getDebugger()
getDebugger in interface IDroneBasepublic java.lang.String getLabel()
getLabel in interface IDroneBasepublic net.minecraft.util.text.ITextComponent getDroneName()
getDroneName in interface IDroneBasepublic void storeTrackerData(net.minecraft.item.ItemStack stack)
storeTrackerData in interface IDroneBasepublic boolean isDroneStillValid()
isDroneStillValid in interface IDroneBasepublic boolean chunkloadSelf()
public boolean chunkloadWorkingChunk()
public boolean chunkloadWorkingChunk3x3()