public class TileEntityFluidMixer extends TileEntityPneumaticBase implements IMinWorkingPressure, IRedstoneControl<TileEntityFluidMixer>, net.minecraft.inventory.container.INamedContainerProvider, ISerializableTanks
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
int |
craftingProgress |
boolean |
didWork |
int |
maxProgress |
airHandler| Constructor and Description |
|---|
TileEntityFluidMixer() |
| Modifier and Type | Method and Description |
|---|---|
default void |
autoExportFluid(TileEntityBase te) |
static void |
cacheRecipeFluids(java.util.List<FluidMixerRecipeImpl> values) |
boolean |
canConnectPneumatic(net.minecraft.util.Direction side)
Checks if the given side of this TE can be pneumatically connected to.
|
static void |
clearCachedFluids() |
net.minecraft.inventory.container.Container |
createMenu(int windowId,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.entity.player.PlayerEntity player) |
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
net.minecraft.util.Direction side) |
float |
getCraftingPercentage() |
java.lang.String |
getCurrentRecipeIdSynced()
For machines which use recipes, get the synced recipe ID client-side for informational purposes
|
net.minecraftforge.fluids.IFluidTank |
getInputTank1() |
net.minecraftforge.fluids.IFluidTank |
getInputTank2() |
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> |
getInventoryCap() |
float |
getMinWorkingPressure()
Get the minimum pressure at which this machine can operate.
|
net.minecraftforge.fluids.IFluidTank |
getOutputTank() |
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
RedstoneController<TileEntityFluidMixer> |
getRedstoneController()
Get the redstone controller object for this TE
|
java.util.Map<java.lang.String,PNCFluidTank> |
getSerializableTanks()
Get a mapping of all tanks; this maps a tag name, which is used as the serialization key, to a fluid tank.
|
void |
handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player) |
boolean |
hasOutputSpace() |
static boolean |
isFluidAccepted(net.minecraft.fluid.Fluid fluid)
Is this fluid in any of the fluid mixer's recipe ingredients?
|
static boolean |
isFluidMatch(net.minecraft.fluid.Fluid fluid1,
net.minecraft.fluid.Fluid fluid2)
Are the two fluids compatible in the fluid mixer?
|
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
void |
tick() |
default int |
tryEjectLiquid(TileEntityBase te,
net.minecraftforge.fluids.capability.IFluidHandler handler,
net.minecraft.util.Direction dir,
int amount) |
addAir, addLuaMethods, forceLeak, getCriticalPressure, getDangerPressure, getDefaultVolume, getPressure, handleUpdateTag, hasNoConnectedAirHandlers, initializeHullAirHandlerClient, initializeHullAirHandlers, onBlockRotated, onFirstServerTick, onNeighborBlockUpdate, onUpgradesChanged, readFromPacket, setRemoved, writeToPacketcountPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getContentsToDrop, 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, waitgetCurrentRedstonePower, getRedstoneMode, getRedstoneTabTitle, onRedstoneModeChangedgetDisplayNamedeserializeTanks, serializeTankspublic int craftingProgress
public int maxProgress
public boolean didWork
public void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityPneumaticBasepublic net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT tag)
save in class TileEntityPneumaticBasepublic void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
load in class TileEntityPneumaticBasepublic java.lang.String getCurrentRecipeIdSynced()
TileEntityBasegetCurrentRecipeIdSynced in class TileEntityBasepublic boolean hasOutputSpace()
public net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBase@Nonnull protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventoryCap()
getInventoryCap in class TileEntityBase@Nonnull
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(@Nonnull
net.minecraftforge.common.capabilities.Capability<T> cap,
@Nullable
net.minecraft.util.Direction side)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class TileEntityPneumaticBasepublic boolean canConnectPneumatic(net.minecraft.util.Direction side)
TileEntityPneumaticBasecanConnectPneumatic in class TileEntityPneumaticBaseside - the side to checkpublic static void clearCachedFluids()
public static void cacheRecipeFluids(java.util.List<FluidMixerRecipeImpl> values)
public static boolean isFluidAccepted(net.minecraft.fluid.Fluid fluid)
fluid - the fluid to testpublic static boolean isFluidMatch(net.minecraft.fluid.Fluid fluid1,
net.minecraft.fluid.Fluid fluid2)
fluid1 - the first fluidfluid2 - the second fluidpublic float getMinWorkingPressure()
IMinWorkingPressuregetMinWorkingPressure in interface IMinWorkingPressure@Nullable
public net.minecraft.inventory.container.Container createMenu(int windowId,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.entity.player.PlayerEntity player)
createMenu in interface net.minecraft.inventory.container.IContainerProviderpublic void handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player)
handleGUIButtonPress in interface IGUIButtonSensitivehandleGUIButtonPress in class TileEntityBasepublic RedstoneController<TileEntityFluidMixer> getRedstoneController()
IRedstoneControlgetRedstoneController in interface IRedstoneControl<TileEntityFluidMixer>@Nonnull public java.util.Map<java.lang.String,PNCFluidTank> getSerializableTanks()
ISerializableTanksgetSerializableTanks in interface ISerializableTankspublic net.minecraftforge.fluids.IFluidTank getInputTank1()
public net.minecraftforge.fluids.IFluidTank getInputTank2()
public net.minecraftforge.fluids.IFluidTank getOutputTank()
public float getCraftingPercentage()
public void autoExportFluid(TileEntityBase te)
public int tryEjectLiquid(TileEntityBase te, net.minecraftforge.fluids.capability.IFluidHandler handler, net.minecraft.util.Direction dir, int amount)