Class MechanicalPressTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.tileEntity.SyncedTileEntity
com.simibubi.create.foundation.tileEntity.CachedRenderBBTileEntity
com.simibubi.create.foundation.tileEntity.SmartTileEntity
com.simibubi.create.content.contraptions.base.KineticTileEntity
com.simibubi.create.content.contraptions.processing.BasinOperatingTileEntity
com.simibubi.create.content.contraptions.components.press.MechanicalPressTileEntity
- All Implemented Interfaces:
PressingBehaviour.PressingBehaviourSpecifics,IHaveGoggleInformation,IHaveHoveringInformation,ISpecialBlockEntityItemRequirement,IInteractionChecker,IPartialSafeNBT,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 MechanicalPressTileEntity
extends BasinOperatingTileEntity
implements PressingBehaviour.PressingBehaviourSpecifics
-
Nested Class Summary
Nested 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
FieldsFields inherited from class com.simibubi.create.content.contraptions.processing.BasinOperatingTileEntity
basinChecker, basinRemoved, currentRecipeFields inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedFields inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
lazyTickCounter, lazyTickRateFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABBFields inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
componentSpacing, spacing -
Constructor Summary
ConstructorsConstructorDescriptionMechanicalPressTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBehaviours(List<TileEntityBehaviour> behaviours) static <C extends net.minecraft.world.Container>
booleancanCompress(net.minecraft.world.item.crafting.Recipe<C> recipe) booleanprotected net.minecraft.world.phys.AABBfloatintprotected Optional<CreateAdvancement>getRecipe(net.minecraft.world.item.ItemStack item) protected Objectprotected booleanprotected <C extends net.minecraft.world.Container>
booleanmatchStaticFilters(net.minecraft.world.item.crafting.Recipe<C> recipe) protected voidvoidonItemPressed(net.minecraft.world.item.ItemStack result) voidprotected voidread(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEvoidbooleantryProcessInBasin(boolean simulate) booleantryProcessInWorld(net.minecraft.world.entity.item.ItemEntity itemEntity, boolean simulate) booleantryProcessOnBelt(TransportedItemStack input, List<net.minecraft.world.item.ItemStack> outputList, boolean simulate) protected voidwrite(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEMethods inherited from class com.simibubi.create.content.contraptions.processing.BasinOperatingTileEntity
applyBasinRecipe, continueWithPreviousRecipe, getBasin, getMatchingRecipes, matchBasinRecipe, onSpeedChanged, tick, updateBasinMethods inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
addPropagationLocations, addToGoggleTooltip, addToTooltip, attachKinetics, calculateAddedStressCapacity, calculateStressApplied, canPropagateDiagonally, clearKineticInformation, convertToAngular, convertToDirection, convertToLinear, detachKinetics, getFlickerScore, getGeneratedSpeed, getOrCreateNetwork, getRotationAngleOffset, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isCustomConnection, isNoisy, isOverStressed, isSource, isSpeedRequirementFulfilled, needsSpeedUpdate, propagateRotationTo, removeSource, requestModelDataUpdate, setNetwork, setRemoved, setRemovedNotDueToChunkUnload, setSource, setSpeed, switchToBlockState, tickAudio, updateFromNetwork, warnOfMovementMethods inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, removeBehaviour, saveAdditional, sendToContainer, setLazyTickRate, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.tileEntity.CachedRenderBBTileEntity
getRenderBoundingBox, invalidateRenderBoundingBoxMethods inherited from class com.simibubi.create.foundation.tileEntity.SyncedTileEntity
causeBlockUpdate, containedChunk, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getTileData, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, 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
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, onLoad, serializeNBTMethods inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
containedFluidTooltip
-
Field Details
-
pressingBehaviour
-
-
Constructor Details
-
MechanicalPressTileEntity
public MechanicalPressTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
createRenderBoundingBox
protected net.minecraft.world.phys.AABB createRenderBoundingBox()- Overrides:
createRenderBoundingBoxin classCachedRenderBBTileEntity
-
addBehaviours
- Overrides:
addBehavioursin classBasinOperatingTileEntity
-
onItemPressed
public void onItemPressed(net.minecraft.world.item.ItemStack result) -
getPressingBehaviour
-
tryProcessInBasin
public boolean tryProcessInBasin(boolean simulate) - Specified by:
tryProcessInBasinin interfacePressingBehaviour.PressingBehaviourSpecifics
-
write
protected void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
writein classKineticTileEntity
-
read
protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
readin classKineticTileEntity
-
tryProcessInWorld
public boolean tryProcessInWorld(net.minecraft.world.entity.item.ItemEntity itemEntity, boolean simulate) - Specified by:
tryProcessInWorldin interfacePressingBehaviour.PressingBehaviourSpecifics
-
tryProcessOnBelt
public boolean tryProcessOnBelt(TransportedItemStack input, List<net.minecraft.world.item.ItemStack> outputList, boolean simulate) - Specified by:
tryProcessOnBeltin interfacePressingBehaviour.PressingBehaviourSpecifics
-
onPressingCompleted
public void onPressingCompleted()- Specified by:
onPressingCompletedin interfacePressingBehaviour.PressingBehaviourSpecifics
-
getRecipe
-
canCompress
public static <C extends net.minecraft.world.Container> boolean canCompress(net.minecraft.world.item.crafting.Recipe<C> recipe) -
matchStaticFilters
protected <C extends net.minecraft.world.Container> boolean matchStaticFilters(net.minecraft.world.item.crafting.Recipe<C> recipe) - Specified by:
matchStaticFiltersin classBasinOperatingTileEntity
-
getKineticSpeed
public float getKineticSpeed()- Specified by:
getKineticSpeedin interfacePressingBehaviour.PressingBehaviourSpecifics
-
canProcessInBulk
public boolean canProcessInBulk()- Specified by:
canProcessInBulkin interfacePressingBehaviour.PressingBehaviourSpecifics
-
getRecipeCacheKey
- Specified by:
getRecipeCacheKeyin classBasinOperatingTileEntity
-
getParticleAmount
public int getParticleAmount()- Specified by:
getParticleAmountin interfacePressingBehaviour.PressingBehaviourSpecifics
-
startProcessingBasin
public void startProcessingBasin()- Overrides:
startProcessingBasinin classBasinOperatingTileEntity
-
onBasinRemoved
protected void onBasinRemoved()- Specified by:
onBasinRemovedin classBasinOperatingTileEntity
-
isRunning
protected boolean isRunning()- Specified by:
isRunningin classBasinOperatingTileEntity
-
getProcessedRecipeTrigger
- Overrides:
getProcessedRecipeTriggerin classBasinOperatingTileEntity
-