public abstract class TileAutoWorkbenchBase extends TileBC_Neptune implements net.minecraft.util.ITickable, IHasWork, IMjRedstoneReceiver, IAutoCraft
| Modifier and Type | Field and Description |
|---|---|
ItemHandlerSimple |
invBlueprint |
ItemHandlerSimple |
invMaterialFilter |
ItemHandlerFiltered |
invMaterials |
ItemHandlerSimple |
invResult |
net.minecraft.item.ItemStack |
resultClient |
caps, DEBUG, deltaManager, IDS, itemManager, NET_ADV_DEBUG, NET_ADV_DEBUG_DISABLE, NET_GUI_DATA, NET_GUI_DELTA_CLEAR, NET_GUI_DELTA_SINGLE, NET_GUI_TICK, NET_REDRAW, NET_REN_DELTA_CLEAR, NET_REN_DELTA_SINGLE, NET_RENDER_DATA, tankManager| Constructor and Description |
|---|
TileAutoWorkbenchBase(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConnect(IMjConnector other)
Checks to see if this connector can connect to the other connector.
|
net.minecraft.item.ItemStack |
getCurrentRecipeOutput() |
ItemHandlerSimple |
getInvBlueprint() |
long |
getPowerRequested() |
double |
getProgress(float partialTicks) |
net.minecraft.inventory.InventoryCrafting |
getWorkbenchCrafting() |
boolean |
hasWork()
Check if the Tile Entity is currently doing any work.
|
protected void |
onSlotChange(net.minecraftforge.items.IItemHandlerModifiable handler,
int slot,
net.minecraft.item.ItemStack before,
net.minecraft.item.ItemStack after) |
void |
readPayload(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx) |
long |
receivePower(long microJoules,
boolean simulate)
Receives power.
|
void |
update() |
void |
writePayload(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side) |
addDrops, canEditOther, canInteractWith, cannotUpdate, canPlayerEdit, createAndSendGuiMessage, createAndSendGuiMessage, createAndSendMessage, createAndSendMessage, createMessage, createNetworkUpdate, disableDebugging, doesExistInWorld, enableDebugging, getCapability, getCurrentState, getCurrentStateForBlock, getDebugRenderer, getIdAllocator, getLocalState, getLocalTile, getNeighbourState, getNeighbourTile, getOffsetState, getOffsetTile, getOwner, getPermBlock, getUpdatePacket, getUpdateTag, handleUpdateTag, hasCapability, isBeingDebugged, markChunkDirty, migrateOldNBT, onActivated, onDataPacket, onExplode, onNeighbourBlockChanged, onPlacedBy, onPlayerClose, onPlayerOpen, onRemove, readFromNBT, receivePayload, redrawBlock, sendDebugState, sendNetworkGuiTick, sendNetworkGuiUpdate, sendNetworkUpdate, sendNetworkUpdate, setWorldCreate, shouldRefresh, writeToNBTaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, shouldRenderInPass, updateContainingBlockInfo, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanReceivepublic final ItemHandlerSimple invBlueprint
public final ItemHandlerSimple invMaterialFilter
public final ItemHandlerFiltered invMaterials
public final ItemHandlerSimple invResult
public net.minecraft.item.ItemStack resultClient
protected void onSlotChange(net.minecraftforge.items.IItemHandlerModifiable handler,
int slot,
@Nonnull
net.minecraft.item.ItemStack before,
@Nonnull
net.minecraft.item.ItemStack after)
onSlotChange in class TileBC_Neptunepublic void update()
update in interface net.minecraft.util.ITickablepublic void writePayload(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side)
writePayload in class TileBC_Neptunepublic void readPayload(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx)
throws java.io.IOException
readPayload in class TileBC_Neptunectx - The context. Will be null if this is a generic update payloadjava.io.IOException - if something went wrongpublic boolean hasWork()
IHasWorkpublic double getProgress(float partialTicks)
public net.minecraft.inventory.InventoryCrafting getWorkbenchCrafting()
public boolean canConnect(@Nonnull
IMjConnector other)
IMjConnectorcanConnect in interface IMjConnectorpublic long getPowerRequested()
getPowerRequested in interface IMjReceiverpublic long receivePower(long microJoules,
boolean simulate)
IMjReceiverMjBattery for later usage.
MjBattery is full).
IMjReceiver.canReceive() before calling this - implementors should check
all of the conditions in IMjReceiver.canReceive() before accepting power.receivePower in interface IMjReceivermicroJoules - The number of micro joules to add.simulate - If true then just pretend you received power- don't actually change any of your internal state.public net.minecraft.item.ItemStack getCurrentRecipeOutput()
getCurrentRecipeOutput in interface IAutoCraftpublic ItemHandlerSimple getInvBlueprint()
getInvBlueprint in interface IAutoCraft