Class BlockWithEntityGuiTank

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
org.cyclops.cyclopscore.block.BlockWithEntity
org.cyclops.cyclopscore.block.BlockWithEntityGui
org.cyclops.evilcraft.core.block.BlockWithEntityGuiTank
All Implemented Interfaces:
net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeBlock, org.cyclops.cyclopscore.block.IBlockGui, org.cyclops.cyclopscore.item.IInformationProvider, IBlockTank
Direct Known Subclasses:
BlockBloodChest, BlockBloodInfuser, BlockColossalBloodChest, BlockSpiritFurnace, BlockSpiritReanimator

public abstract class BlockWithEntityGuiTank extends org.cyclops.cyclopscore.block.BlockWithEntityGui implements org.cyclops.cyclopscore.item.IInformationProvider, IBlockTank
Tank block with gui.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block

    net.minecraft.world.level.block.Block.BlockStatePairKey

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A extends Object>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate

    Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.block.IBlockGui

    org.cyclops.cyclopscore.block.IBlockGui.IBlockContainerProvider
  • Field Summary

    Fields inherited from class net.minecraft.world.level.block.Block

    BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPS, UPDATE_SUPPRESS_LIGHT

    Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER

    Fields inherited from interface org.cyclops.cyclopscore.item.IInformationProvider

    BLOCK_PREFIX, INFO_PREFIX, INFO_PREFIX_STYLES, ITEM_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockWithEntityGuiTank(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity> blockEntitySupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos)
     
    net.minecraft.network.chat.MutableComponent
    getInfo(net.minecraft.world.item.ItemStack itemStack)
     
    boolean
    hasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState blockState)
     
    boolean
     
    boolean
    isActivated(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world)
    If the given item is activated.
    void
    onRemove(net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState newState, boolean isMoving)
     
    void
    provideInformation(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag iTooltipFlag)
     
    net.minecraft.world.item.ItemStack
    toggleActivation(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
    Toggle the activation of the item.
    net.minecraft.world.InteractionResult
    use(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult rayTraceResult)
     

    Methods inherited from class org.cyclops.cyclopscore.block.BlockWithEntity

    getCloneItemStack, getDroppedItemStack, getDroppedItemStackNbt, getRenderShape, isPersistNbt, newBlockEntity, playerWillDestroy

    Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock

    createTickerHelper, getMenuProvider, triggerEvent

    Methods inherited from class net.minecraft.world.level.block.Block

    animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, createBlockStateDefinition, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf

    Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMaterialColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getPistonPushReaction, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, randomTick, rotate, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.block.EntityBlock

    getListener, getTicker

    Methods inherited from interface org.cyclops.cyclopscore.block.IBlockGui

    getOpenStat, writeExtraGuiData

    Methods inherited from interface org.cyclops.evilcraft.core.block.IBlockTank

    getDefaultCapacity

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock

    addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onCaughtFire, onDestroyedByPlayer, onNeighborChange, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
  • Constructor Details

    • BlockWithEntityGuiTank

      public BlockWithEntityGuiTank(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity> blockEntitySupplier)
  • Method Details

    • hasAnalogOutputSignal

      public boolean hasAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState blockState)
      Overrides:
      hasAnalogOutputSignal in class net.minecraft.world.level.block.state.BlockBehaviour
    • getAnalogOutputSignal

      public int getAnalogOutputSignal(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos)
      Overrides:
      getAnalogOutputSignal in class net.minecraft.world.level.block.state.BlockBehaviour
    • use

      public net.minecraft.world.InteractionResult use(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult rayTraceResult)
      Overrides:
      use in class org.cyclops.cyclopscore.block.BlockWithEntityGui
    • getInfo

      public net.minecraft.network.chat.MutableComponent getInfo(net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      getInfo in interface org.cyclops.cyclopscore.item.IInformationProvider
    • provideInformation

      public void provideInformation(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag iTooltipFlag)
      Specified by:
      provideInformation in interface org.cyclops.cyclopscore.item.IInformationProvider
    • isActivatable

      public boolean isActivatable()
      Specified by:
      isActivatable in interface IBlockTank
      Returns:
      If this tank can be activated to auto-fill.
    • toggleActivation

      public net.minecraft.world.item.ItemStack toggleActivation(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player)
      Description copied from interface: IBlockTank
      Toggle the activation of the item.
      Specified by:
      toggleActivation in interface IBlockTank
      Parameters:
      itemStack - The item.
      world - The world.
      player - The player holding the item.
      Returns:
      The toggled item.
    • isActivated

      public boolean isActivated(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world)
      Description copied from interface: IBlockTank
      If the given item is activated.
      Specified by:
      isActivated in interface IBlockTank
      Parameters:
      itemStack - The item.
      world - The world.
      Returns:
      If it is activated.
    • onRemove

      public void onRemove(net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState newState, boolean isMoving)
      Overrides:
      onRemove in class net.minecraft.world.level.block.state.BlockBehaviour