Class BlockColossalBloodChest

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
org.cyclops.evilcraft.block.BlockColossalBloodChest
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.block.multi.CubeDetector.IDetectionListener, org.cyclops.cyclopscore.item.IInformationProvider, IBlockTank

public class BlockColossalBloodChest extends BlockWithEntityGuiTank implements org.cyclops.cyclopscore.block.multi.CubeDetector.IDetectionListener
A machine that can infuse stuff with blood.
  • 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
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     

    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
    BlockColossalBloodChest(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addPlayerChatError(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.Component error)
     
    static void
    addPlayerChatError(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
    Show the structure forming error in the given player chat window.
    protected void
    createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> builder)
     
    void
    destroy(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
    int
    Get the default capacity possible for this item/blockState type.
    net.minecraft.world.level.block.RenderShape
    getRenderShape(net.minecraft.world.level.block.state.BlockState blockState)
     
    net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context)
     
    <T extends net.minecraft.world.level.block.entity.BlockEntity>
    net.minecraft.world.level.block.entity.BlockEntityTicker<T>
    getTicker(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.entity.BlockEntityType<T> blockEntityType)
     
    boolean
    isValidSpawn(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.SpawnPlacements.Type type, net.minecraft.world.entity.EntityType<?> entityType)
     
    void
    onBlockExploded(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Explosion explosion)
     
    void
    onDetect(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos location, net.minecraft.core.Vec3i size, boolean valid, net.minecraft.core.BlockPos originCorner)
     
    void
    onPlace(net.minecraft.world.level.block.state.BlockState blockStateNew, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockStateOld, boolean isMoving)
     
    boolean
    propagatesSkylightDown(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter blockReader, net.minecraft.core.BlockPos blockPos)
     
    void
    setPlacedBy(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.LivingEntity placer, net.minecraft.world.item.ItemStack stack)
     
    boolean
    shouldDisplayFluidOverlay(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState fluidState)
     
    static void
    triggerDetector(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos blockPos, boolean valid)
     
    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, 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, defaultBlockState, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, 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, 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

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

    getOpenStat, writeExtraGuiData

    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, getMapColor, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, rotate, setBedOccupied, shouldCheckWeakPower, supportsExternalFaceHiding
  • Field Details

    • ACTIVE

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty ACTIVE
  • Constructor Details

    • BlockColossalBloodChest

      public BlockColossalBloodChest(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
  • Method Details

    • getTicker

      @Nullable public <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.entity.BlockEntityType<T> blockEntityType)
      Specified by:
      getTicker in interface net.minecraft.world.level.block.EntityBlock
    • createBlockStateDefinition

      protected void createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> builder)
      Overrides:
      createBlockStateDefinition in class net.minecraft.world.level.block.Block
    • getStateForPlacement

      public net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context)
      Overrides:
      getStateForPlacement in class net.minecraft.world.level.block.Block
    • getRenderShape

      public net.minecraft.world.level.block.RenderShape getRenderShape(net.minecraft.world.level.block.state.BlockState blockState)
      Overrides:
      getRenderShape in class org.cyclops.cyclopscore.block.BlockWithEntity
    • propagatesSkylightDown

      public boolean propagatesSkylightDown(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter blockReader, net.minecraft.core.BlockPos blockPos)
      Overrides:
      propagatesSkylightDown in class net.minecraft.world.level.block.Block
    • isValidSpawn

      public boolean isValidSpawn(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.SpawnPlacements.Type type, @Nullable net.minecraft.world.entity.EntityType<?> entityType)
      Specified by:
      isValidSpawn in interface net.minecraftforge.common.extensions.IForgeBlock
    • shouldDisplayFluidOverlay

      public boolean shouldDisplayFluidOverlay(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState fluidState)
      Specified by:
      shouldDisplayFluidOverlay in interface net.minecraftforge.common.extensions.IForgeBlock
    • 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 BlockWithEntityGuiTank
    • getDefaultCapacity

      public int getDefaultCapacity()
      Description copied from interface: IBlockTank
      Get the default capacity possible for this item/blockState type.
      Specified by:
      getDefaultCapacity in interface IBlockTank
      Returns:
      The default capacity.
    • triggerDetector

      public static void triggerDetector(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos blockPos, boolean valid)
    • setPlacedBy

      public void setPlacedBy(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.LivingEntity placer, net.minecraft.world.item.ItemStack stack)
      Overrides:
      setPlacedBy in class net.minecraft.world.level.block.Block
    • onPlace

      public void onPlace(net.minecraft.world.level.block.state.BlockState blockStateNew, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockStateOld, boolean isMoving)
      Overrides:
      onPlace in class net.minecraft.world.level.block.state.BlockBehaviour
    • destroy

      public void destroy(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
      Overrides:
      destroy in class net.minecraft.world.level.block.Block
    • onBlockExploded

      public void onBlockExploded(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Explosion explosion)
      Specified by:
      onBlockExploded in interface net.minecraftforge.common.extensions.IForgeBlock
    • onDetect

      public void onDetect(net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos location, net.minecraft.core.Vec3i size, boolean valid, net.minecraft.core.BlockPos originCorner)
      Specified by:
      onDetect in interface org.cyclops.cyclopscore.block.multi.CubeDetector.IDetectionListener
    • addPlayerChatError

      public static void addPlayerChatError(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
      Show the structure forming error in the given player chat window.
      Parameters:
      world - The world.
      blockPos - The start position.
      player - The player.
      hand - The used hand.
    • addPlayerChatError

      public static void addPlayerChatError(net.minecraft.world.entity.player.Player player, net.minecraft.network.chat.Component error)