Class SolarCompressorBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractAirHandlingBlockEntity
me.desht.pneumaticcraft.common.block.entity.SolarCompressorBlockEntity
- All Implemented Interfaces:
IGUIButtonSensitive,IHasBoundingBlocks,IHeatExchangingTE,ILuaMethodProvider,IDescSynced,IUpgradeHolder,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.minecraft.world.Nameable,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class SolarCompressorBlockEntity
extends AbstractAirHandlingBlockEntity
implements IHeatExchangingTE, net.minecraft.world.MenuProvider, IHasBoundingBlocks
-
Nested Class Summary
Nested classes/interfaces inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
AbstractPneumaticCraftBlockEntity.UpgradeHandlerNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doubleFields inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractAirHandlingBlockEntity
airHandlerFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionSolarCompressorBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidBreaks solar compressor and dangerously vents all heatbooleancanConnectPneumatic(net.minecraft.core.Direction side) Checks if the given side of this BE can be pneumatically connected to.booleanReturns if the solar compressor block can generate airvoidSets if the solar compressor block can see the sunnet.minecraft.world.inventory.AbstractContainerMenucreateMenu(int i, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity) voidFixes the solar compressor (sets isBroken to false)float@NotNull BoundingBlockEntityDataGets theBoundingBlockEntityDatalinked to the implementing block entity which stores all the data relevant to bounding blocks for the block entitybooleanReturns if the solar compressor block can see the sunnet.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic>getHeatCap(net.minecraft.core.Direction side) floatReturns the bonus heat efficiency for the compressor Base ambient temperature (39C or 312.15K) or less is efficiency of 1 Higher temperature scales efficiency up to 8 at 351.15C or 624.3K@Nullable IHeatExchangerLogicgetHeatExchanger(net.minecraft.core.Direction dir) Get the heat exchanger on the given face.intReturns the percent for the heat efficiency of the solar compressornet.minecraftforge.items.IItemHandlerintReturns the heat of the solar compressorbooleanisBroken()Returns if the compressor is brokenvoidload(net.minecraft.nbt.CompoundTag tag) voidsaveAdditional(net.minecraft.nbt.CompoundTag tag) voidMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractAirHandlingBlockEntity
addAir, addLuaMethods, getCapability, getCriticalPressure, getDangerPressure, getDefaultVolume, getPressure, handleUpdateTag, hasNoConnectedAirHandlers, initializeHullAirHandlerClient, initializeHullAirHandlers, onBlockRotated, onLoad, onNeighborBlockUpdate, onUpgradesChanged, readFromPacket, setRemoved, tickCommonPre, writeToPacketMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
tickClient, tickCommonPostMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
countPlayersUsing, getCachedNeighbor, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getEnergyCap, getFluidCap, getInventoryCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeCache, getUpgradeHandler, getUpgrades, handleGUIButtonPress, isGuiUseableByPlayer, nonNullLevel, onDescUpdate, onGuiUpdate, onNeighborTileUpdate, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, shouldPreserveStateOnBreak, shouldRerenderChunkOnDescUpdate, shouldSyncField, updateNeighboursMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getRenderBoundingBox, hasCustomOutlineRendering, onDataPacket, serializeNBTMethods inherited from interface me.desht.pneumaticcraft.common.block.entity.IHasBoundingBlocks
getBoundingPlaced, getBoundingRemoved, getMain, getMainBlockRemovalLock, getOffsetFromMain, isBounding, setBoundingPlaced, setBoundingRemoved, setMainBlockRemovalLock, setOffsetFromMainMethods inherited from interface me.desht.pneumaticcraft.common.block.entity.IHeatExchangingTE
getHeatExchanger, heatExchangerBlockFilter, initHeatExchangersOnPlacement, initializeHullHeatExchangers, shouldShowGuiHeatTabMethods inherited from interface net.minecraft.world.MenuProvider
getDisplayNameMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
MAX_TEMPERATURE
public static final double MAX_TEMPERATURE- See Also:
-
WARNING_TEMPERATURE
public static final double WARNING_TEMPERATURE- See Also:
-
-
Constructor Details
-
SolarCompressorBlockEntity
public SolarCompressorBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getBoundingBlockEntityData
Description copied from interface:IHasBoundingBlocksGets theBoundingBlockEntityDatalinked to the implementing block entity which stores all the data relevant to bounding blocks for the block entity- Specified by:
getBoundingBlockEntityDatain interfaceIHasBoundingBlocks- Returns:
- the
BoundingBlockEntityDatalinked to the implementing block entity
-
isBroken
public boolean isBroken()Returns if the compressor is broken- Returns:
- if the compressor is broken
-
fixBroken
public void fixBroken()Fixes the solar compressor (sets isBroken to false) -
breakCompressor
public void breakCompressor()Breaks solar compressor and dangerously vents all heat -
getHeatEfficiency
public float getHeatEfficiency()Returns the bonus heat efficiency for the compressor Base ambient temperature (39C or 312.15K) or less is efficiency of 1 Higher temperature scales efficiency up to 8 at 351.15C or 624.3K- Returns:
- the bonus heat efficiency for the compressor
-
getPercentHeatEfficiency
public int getPercentHeatEfficiency()Returns the percent for the heat efficiency of the solar compressor- Returns:
- the percent for the heat efficiency of the solar compressor
-
getTemperature
public int getTemperature()Returns the heat of the solar compressor- Returns:
- the heat of the solar compressor
-
canGenerateAir
public boolean canGenerateAir()Returns if the solar compressor block can generate air- Returns:
- if the solar compressor block can generate air
-
canSeeSunlight
public void canSeeSunlight()Sets if the solar compressor block can see the sun -
getCanSeeSunlight
public boolean getCanSeeSunlight()Returns if the solar compressor block can see the sun- Returns:
- if the solar compressor block can see the sun
-
tickServer
public void tickServer()- Overrides:
tickServerin classAbstractTickingBlockEntity
-
canConnectPneumatic
public boolean canConnectPneumatic(net.minecraft.core.Direction side) Description copied from class:AbstractAirHandlingBlockEntityChecks if the given side of this BE can be pneumatically connected to.- Overrides:
canConnectPneumaticin classAbstractAirHandlingBlockEntity- Parameters:
side- the side to check- Returns:
- true if connected, false otherwise
-
getPrimaryInventory
public net.minecraftforge.items.IItemHandler getPrimaryInventory()- Specified by:
getPrimaryInventoryin classAbstractPneumaticCraftBlockEntity
-
getHeatCap
public net.minecraftforge.common.util.LazyOptional<IHeatExchangerLogic> getHeatCap(net.minecraft.core.Direction side) - Overrides:
getHeatCapin classAbstractPneumaticCraftBlockEntity
-
getAirRate
public float getAirRate() -
createMenu
@Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int i, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
getHeatExchanger
Description copied from interface:IHeatExchangingTEGet the heat exchanger on the given face. This may return null iff the direction is not null.- Specified by:
getHeatExchangerin interfaceIHeatExchangingTE- Parameters:
dir- the side of the block to check, or null for the default/primary heat exchanger- Returns:
- a heat exchanger
-
load
public void load(net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classAbstractAirHandlingBlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classAbstractAirHandlingBlockEntity
-