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, migrateOldNBT, onActivated, onDataPacket, onExplode, onNeighbourBlockChanged, onPlacedBy, onPlayerClose, onPlayerOpen, onRemove, readFromNBT, receivePayload, redrawBlock, sendDebugState, sendNetworkGuiTick, sendNetworkGuiUpdate, sendNetworkUpdate, sendNetworkUpdate, setWorldCreate, shouldRefresh, writeToNBT
addInfoToCrashReport, 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, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canReceive
public 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_Neptune
public void update()
update
in interface net.minecraft.util.ITickable
public void writePayload(int id, PacketBufferBC buffer, net.minecraftforge.fml.relauncher.Side side)
writePayload
in class TileBC_Neptune
public 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_Neptune
ctx
- The context. Will be null if this is a generic update payloadjava.io.IOException
- if something went wrongpublic boolean hasWork()
IHasWork
public double getProgress(float partialTicks)
public net.minecraft.inventory.InventoryCrafting getWorkbenchCrafting()
public boolean canConnect(@Nonnull IMjConnector other)
IMjConnector
canConnect
in interface IMjConnector
public long getPowerRequested()
getPowerRequested
in interface IMjReceiver
public long receivePower(long microJoules, boolean simulate)
IMjReceiver
MjBattery
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 IMjReceiver
microJoules
- 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 IAutoCraft
public ItemHandlerSimple getInvBlueprint()
getInvBlueprint
in interface IAutoCraft