Class AbstractFunnelBlock

java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.world.level.block.Block>
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
com.simibubi.create.content.logistics.block.funnel.AbstractFunnelBlock
All Implemented Interfaces:
IWrenchable, ITE<FunnelTileEntity>, net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeBlock, net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
Direct Known Subclasses:
AbstractDirectionalFunnelBlock, AbstractHorizontalFunnelBlock

public abstract class AbstractFunnelBlock extends net.minecraft.world.level.block.Block implements ITE<FunnelTileEntity>, IWrenchable
  • 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 class net.minecraftforge.registries.ForgeRegistryEntry

    net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>
  • 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, RANDOM, 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 class net.minecraftforge.registries.ForgeRegistryEntry

    delegate
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractFunnelBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties p_i48377_1_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos pos)
     
    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)
     
    protected abstract net.minecraft.core.Direction
    getFacing(net.minecraft.world.level.block.state.BlockState state)
     
    static net.minecraft.core.Direction
    getFunnelFacing(net.minecraft.world.level.block.state.BlockState state)
     
    net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context)
     
     
    net.minecraft.world.level.block.entity.BlockEntityType<? extends FunnelTileEntity>
     
    void
    initializeClient(Consumer<net.minecraftforge.client.IBlockRenderProperties> consumer)
     
    static boolean
    isFunnel(net.minecraft.world.level.block.state.BlockState state)
     
    boolean
    isPathfindable(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.pathfinder.PathComputationType type)
     
    void
    neighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block blockIn, net.minecraft.core.BlockPos fromPos, boolean isMoving)
     
    void
    onRemove(net.minecraft.world.level.block.state.BlockState p_196243_1_, net.minecraft.world.level.Level p_196243_2_, net.minecraft.core.BlockPos p_196243_3_, net.minecraft.world.level.block.state.BlockState p_196243_4_, boolean p_196243_5_)
     
    void
    tick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel worldIn, net.minecraft.core.BlockPos pos, Random r)
     
    static net.minecraft.world.item.ItemStack
    tryInsert(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack toInsert, boolean simulate)
     

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

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

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

    attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isSignalSource, mirror, onPlace, onProjectileHit, randomTick, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusion

    Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName

    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 net.minecraftforge.common.extensions.IForgeBlock

    addLandingEffects, addRunningEffects, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getCloneItemStack, 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

    Methods inherited from interface com.simibubi.create.foundation.block.ITE

    getTicker, getTileEntity, getTileEntityOptional, newBlockEntity, onTileEntityUse, withTileEntityDo

    Methods inherited from interface com.simibubi.create.content.contraptions.wrench.IWrenchable

    getRotatedBlockState, onSneakWrenched, onWrenched, playRemoveSound, playRotateSound, updateAfterWrenched
  • Field Details

    • POWERED

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

    • AbstractFunnelBlock

      protected AbstractFunnelBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties p_i48377_1_)
  • Method Details

    • initializeClient

      public void initializeClient(Consumer<net.minecraftforge.client.IBlockRenderProperties> consumer)
      Overrides:
      initializeClient 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
    • isPathfindable

      public boolean isPathfindable(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.pathfinder.PathComputationType type)
      Overrides:
      isPathfindable in class net.minecraft.world.level.block.state.BlockBehaviour
    • 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
    • neighborChanged

      public void neighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block blockIn, net.minecraft.core.BlockPos fromPos, boolean isMoving)
      Overrides:
      neighborChanged in class net.minecraft.world.level.block.state.BlockBehaviour
    • tick

      public void tick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel worldIn, net.minecraft.core.BlockPos pos, Random r)
      Overrides:
      tick in class net.minecraft.world.level.block.state.BlockBehaviour
    • tryInsert

      public static net.minecraft.world.item.ItemStack tryInsert(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack toInsert, boolean simulate)
    • canSurvive

      public boolean canSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos pos)
      Overrides:
      canSurvive in class net.minecraft.world.level.block.state.BlockBehaviour
    • isFunnel

      @Nullable public static boolean isFunnel(net.minecraft.world.level.block.state.BlockState state)
    • getFunnelFacing

      @Nullable public static net.minecraft.core.Direction getFunnelFacing(net.minecraft.world.level.block.state.BlockState state)
    • getFacing

      protected abstract net.minecraft.core.Direction getFacing(net.minecraft.world.level.block.state.BlockState state)
    • onRemove

      public void onRemove(net.minecraft.world.level.block.state.BlockState p_196243_1_, net.minecraft.world.level.Level p_196243_2_, net.minecraft.core.BlockPos p_196243_3_, net.minecraft.world.level.block.state.BlockState p_196243_4_, boolean p_196243_5_)
      Overrides:
      onRemove in class net.minecraft.world.level.block.state.BlockBehaviour
    • getTileEntityClass

      public Class<FunnelTileEntity> getTileEntityClass()
      Specified by:
      getTileEntityClass in interface ITE<FunnelTileEntity>
    • getTileEntityType

      public net.minecraft.world.level.block.entity.BlockEntityType<? extends FunnelTileEntity> getTileEntityType()
      Specified by:
      getTileEntityType in interface ITE<FunnelTileEntity>