Class BlockEntitySanguinaryEnvironmentalAccumulator
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
org.cyclops.evilcraft.core.blockentity.BlockEntityTankInventory
org.cyclops.evilcraft.core.blockentity.BlockEntityTickingTankInventory<T>
org.cyclops.evilcraft.core.blockentity.BlockEntityWorking<BlockEntitySanguinaryEnvironmentalAccumulator,org.apache.commons.lang3.mutable.MutableInt>
org.cyclops.evilcraft.blockentity.BlockEntitySanguinaryEnvironmentalAccumulator
- All Implemented Interfaces:
net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,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>,org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable,org.cyclops.cyclopscore.persist.IDirtyMarkListener,org.cyclops.cyclopscore.persist.nbt.INBTProvider,IUpgradable<BlockEntitySanguinaryEnvironmentalAccumulator,,org.apache.commons.lang3.mutable.MutableInt> VirtualTank.ITankProvider
public class BlockEntitySanguinaryEnvironmentalAccumulator
extends BlockEntityWorking<BlockEntitySanguinaryEnvironmentalAccumulator,org.apache.commons.lang3.mutable.MutableInt>
implements VirtualTank.ITankProvider, net.minecraft.world.MenuProvider
A machine that can infuse things with blood.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityWorking
BlockEntityWorking.TickerServer<T extends BlockEntityWorking<T,O>, O> 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
FieldsModifier and TypeFieldDescriptionstatic final intThe id of the accumulation slot.static final intThe id of the accumulation result slot.static final intThe total amount of slots in this machine.static intstatic final Upgrades.UpgradeEventTypestatic final Upgrades.UpgradeEventTypeFields inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityWorking
hasJustWorked, INVENTORY_SIZE_UPGRADES, upgradeBehaviourFields inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityTickingTankInventory
currentState, previousStateFields inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityTankInventory
tankSizeFields 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
ConstructorsConstructorDescriptionBlockEntitySanguinaryEnvironmentalAccumulator(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidbooleancanWork()Check if this tile is valid and can start working.protected org.cyclops.cyclopscore.inventory.SimpleInventorycreateInventory(int inventorySize, int stackSize) net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity) net.minecraft.network.chat.ComponentgetRecipe(net.minecraft.world.item.ItemStack itemStack) Get the recipe for the maximum current tier available.protected net.minecraft.world.item.crafting.RecipeType<RecipeEnvironmentalAccumulator>net.minecraftforge.fluids.capability.IFluidHandler[]protected intvoidWhat needs to happen when the (numerical) state is changed.protected voidprotected voidprotected voidMethods inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityWorking
getBasicInventorySize, getNewState, getRequiredWorkTicks, getTankTierMultiplier, getUpgradeBehaviour, getUpgradeItems, getUpgradeLevel, getUpgradeLevels, getUpgradeType, getWorkTick, getWorkTickScaled, hasJustWorked, isVisuallyWorking, isWorking, onUpgradeSlotChanged, resetUpgradeLevels, resetWork, resetWorkMethods inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityTickingTankInventory
addTicker, getCurrentState, getTickers, read, saveAdditionalMethods inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityTankInventory
createTank, getTank, onTankChangedMethods inherited from class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
addCapabilityInternal, addCapabilitySided, canInteractWith, getCapability, getRotation, getStoredCapabilities, getUpdateBackoff, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, invalidateCaps, load, onDataPacket, onDirty, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, sendUpdate, setUpdateBackoff, shouldSendUpdate, transformFacingForRotation, unsetSendUpdate, writeGeneratedFieldsToNBT, writeToItemStackMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable
reduceUpdateBackoff, sendImmediateUpdateMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, requestModelDataUpdate, serializeNBT
-
Field Details
-
SLOTS
public static final int SLOTSThe total amount of slots in this machine.- See Also:
-
SLOT_ACCUMULATE
public static final int SLOT_ACCUMULATEThe id of the accumulation slot.- See Also:
-
SLOT_ACCUMULATE_RESULT
public static final int SLOT_ACCUMULATE_RESULTThe id of the accumulation result slot.- See Also:
-
METADATA
-
TICKERS
public static int TICKERS -
UPGRADEEVENT_SPEED
-
UPGRADEEVENT_BLOODUSAGE
-
-
Constructor Details
-
BlockEntitySanguinaryEnvironmentalAccumulator
public BlockEntitySanguinaryEnvironmentalAccumulator(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
addItemHandlerCapabilities
protected void addItemHandlerCapabilities()- Overrides:
addItemHandlerCapabilitiesin classBlockEntityTankInventory
-
addFluidHandlerCapabilities
protected void addFluidHandlerCapabilities()- Overrides:
addFluidHandlerCapabilitiesin classBlockEntityTankInventory
-
createInventory
protected org.cyclops.cyclopscore.inventory.SimpleInventory createInventory(int inventorySize, int stackSize) - Overrides:
createInventoryin classBlockEntityWorking<BlockEntitySanguinaryEnvironmentalAccumulator,org.apache.commons.lang3.mutable.MutableInt>
-
getInventory
- Overrides:
getInventoryin classBlockEntityTankInventory
-
getRecipe
public Optional<RecipeEnvironmentalAccumulator> getRecipe(net.minecraft.world.item.ItemStack itemStack) Get the recipe for the maximum current tier available.- Parameters:
itemStack- The input item.- Returns:
- The recipe.
-
getRegistry
protected net.minecraft.world.item.crafting.RecipeType<RecipeEnvironmentalAccumulator> getRegistry() -
showAccumulatingParticles
protected void showAccumulatingParticles() -
showTankBeams
protected void showTankBeams() -
showMissingTanks
protected void showMissingTanks() -
onStateChanged
public void onStateChanged()Description copied from class:BlockEntityTickingTankInventoryWhat needs to happen when the (numerical) state is changed.- Overrides:
onStateChangedin classBlockEntityWorking<BlockEntitySanguinaryEnvironmentalAccumulator,org.apache.commons.lang3.mutable.MutableInt>
-
getTileWorkingMetadata
- Specified by:
getTileWorkingMetadatain classBlockEntityWorking<BlockEntitySanguinaryEnvironmentalAccumulator,org.apache.commons.lang3.mutable.MutableInt>
-
canWork
public boolean canWork()Description copied from class:BlockEntityWorkingCheck if this tile is valid and can start working. Mostly defined by environmental parameters.- Specified by:
canWorkin classBlockEntityWorking<BlockEntitySanguinaryEnvironmentalAccumulator,org.apache.commons.lang3.mutable.MutableInt> - Returns:
- If it is valid and can work.
-
getWorkTicker
protected int getWorkTicker()- Specified by:
getWorkTickerin classBlockEntityWorking<BlockEntitySanguinaryEnvironmentalAccumulator,org.apache.commons.lang3.mutable.MutableInt>
-
getVirtualTank
-
getVirtualTankChildren
@Nullable public net.minecraftforge.fluids.capability.IFluidHandler[] getVirtualTankChildren()- Specified by:
getVirtualTankChildrenin interfaceVirtualTank.ITankProvider
-
createMenu
@Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacenet.minecraft.world.MenuProvider
-