Class FluidPipeBlock

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.PipeBlock
com.simibubi.create.content.fluids.pipes.FluidPipeBlock
All Implemented Interfaces:
TransformableBlock, EncasableBlock, IWrenchable, IWrenchableWithBracket, IBE<FluidPipeBlockEntity>, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.BucketPickup, net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.block.LiquidBlockContainer, net.minecraft.world.level.block.SimpleWaterloggedBlock, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IBlockExtension, net.neoforged.neoforge.common.extensions.IBucketPickupExtension

public class FluidPipeBlock extends net.minecraft.world.level.block.PipeBlock implements net.minecraft.world.level.block.SimpleWaterloggedBlock, IWrenchableWithBracket, IBE<FluidPipeBlockEntity>, EncasableBlock, TransformableBlock
  • 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.OffsetFunction, 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>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<FluidPipeBlock>
     

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

    DOWN, EAST, NORTH, PROPERTY_BY_DIRECTION, shapeByIndex, SOUTH, UP, WEST

    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

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

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

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    FluidPipeBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canConnectTo(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos neighbourPos, net.minecraft.world.level.block.state.BlockState neighbour, net.minecraft.core.Direction direction)
     
    protected @NotNull com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.PipeBlock>
     
    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)
     
    net.minecraft.world.level.block.state.BlockState
    getAxisState(net.minecraft.core.Direction.Axis axis)
     
     
    net.minecraft.world.level.block.entity.BlockEntityType<? extends FluidPipeBlockEntity>
     
    net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.world.level.block.state.BlockState state)
     
    net.minecraft.world.phys.shapes.VoxelShape
    getOcclusionShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos)
     
    net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context)
     
    static boolean
    isCornerOrEndPipe(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    isOpenAt(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction)
     
    protected boolean
    isPathfindable(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.pathfinder.PathComputationType pathComputationType)
     
    static boolean
    isPipe(net.minecraft.world.level.block.state.BlockState state)
     
    net.minecraft.world.level.block.state.BlockState
    mirror(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.Mirror pMirror)
     
    void
    neighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block otherBlock, net.minecraft.core.BlockPos neighborPos, boolean isMoving)
     
    void
    onPlace(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, boolean isMoving)
     
    void
    onRemove(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, boolean isMoving)
     
    net.minecraft.world.InteractionResult
    onWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
     
    Optional<net.minecraft.world.item.ItemStack>
    removeBracket(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, boolean inOnReplacedContext)
     
    net.minecraft.world.level.block.state.BlockState
    rotate(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.Rotation pRotation)
     
    void
    setPlacedBy(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.LivingEntity pPlacer, net.minecraft.world.item.ItemStack pStack)
     
    static boolean
    shouldDrawCasing(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    shouldDrawRim(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction)
     
    boolean
    supportsExternalFaceHiding(net.minecraft.world.level.block.state.BlockState state)
     
    void
    tick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource r)
     
    net.minecraft.world.level.block.state.BlockState
    transform(net.minecraft.world.level.block.state.BlockState state, StructureTransform transform)
     
    net.minecraft.world.level.block.state.BlockState
    updateBlockState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction preferredDirection, @Nullable net.minecraft.core.Direction ignore, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.block.state.BlockState
    updateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.block.state.BlockState neighbourState, net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos neighbourPos)
     
    protected net.minecraft.world.ItemInteractionResult
    useItemOn(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult hitResult)
     

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

    getAABBIndex, getShape, propagatesSkylightDown

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

    animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, 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, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isRandomlyTicking, isSignalSource, onExplosionHit, onProjectileHit, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, useShapeForLightOcclusion, useWithoutItem

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.simibubi.create.content.decoration.encasing.EncasableBlock

    playEncaseSound, tryEncase

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

    getListener

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

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

    getBlockEntity, getBlockEntityOptional, getTicker, newBlockEntity, onBlockEntityUse, onBlockEntityUseItemOn, withBlockEntityDo

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension

    addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, ignitedByLava, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBucketPickupExtension

    getPickupSound

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

    getRotatedBlockState, onSneakWrenched, updateAfterWrenched

    Methods inherited from interface com.simibubi.create.content.equipment.wrench.IWrenchableWithBracket

    tryRemoveBracket

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

    canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<FluidPipeBlock> CODEC
  • Constructor Details

    • FluidPipeBlock

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

    • onWrenched

      public net.minecraft.world.InteractionResult onWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
      Specified by:
      onWrenched in interface IWrenchable
      Specified by:
      onWrenched in interface IWrenchableWithBracket
    • setPlacedBy

      public void setPlacedBy(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.LivingEntity pPlacer, net.minecraft.world.item.ItemStack pStack)
      Overrides:
      setPlacedBy in class net.minecraft.world.level.block.Block
    • useItemOn

      protected net.minecraft.world.ItemInteractionResult useItemOn(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult hitResult)
      Overrides:
      useItemOn in class net.minecraft.world.level.block.state.BlockBehaviour
    • getAxisState

      public net.minecraft.world.level.block.state.BlockState getAxisState(net.minecraft.core.Direction.Axis axis)
    • onRemove

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

      public void onPlace(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, boolean isMoving)
      Overrides:
      onPlace in class net.minecraft.world.level.block.state.BlockBehaviour
    • neighborChanged

      public void neighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block otherBlock, net.minecraft.core.BlockPos neighborPos, 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 world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource r)
      Overrides:
      tick in class net.minecraft.world.level.block.state.BlockBehaviour
    • isPipe

      public static boolean isPipe(net.minecraft.world.level.block.state.BlockState state)
    • canConnectTo

      public static boolean canConnectTo(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos neighbourPos, net.minecraft.world.level.block.state.BlockState neighbour, net.minecraft.core.Direction direction)
    • shouldDrawRim

      public static boolean shouldDrawRim(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction)
    • isOpenAt

      public static boolean isOpenAt(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction)
    • isCornerOrEndPipe

      public static boolean isCornerOrEndPipe(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • shouldDrawCasing

      public static boolean shouldDrawCasing(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • 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
    • updateShape

      public net.minecraft.world.level.block.state.BlockState updateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.block.state.BlockState neighbourState, net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos neighbourPos)
      Overrides:
      updateShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • updateBlockState

      public net.minecraft.world.level.block.state.BlockState updateBlockState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction preferredDirection, @Nullable @Nullable net.minecraft.core.Direction ignore, net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.core.BlockPos pos)
    • getFluidState

      public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getFluidState in class net.minecraft.world.level.block.state.BlockBehaviour
    • removeBracket

      public Optional<net.minecraft.world.item.ItemStack> removeBracket(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, boolean inOnReplacedContext)
      Specified by:
      removeBracket in interface IWrenchableWithBracket
    • isPathfindable

      protected boolean isPathfindable(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.pathfinder.PathComputationType pathComputationType)
      Overrides:
      isPathfindable in class net.minecraft.world.level.block.state.BlockBehaviour
    • getBlockEntityClass

      public Class<FluidPipeBlockEntity> getBlockEntityClass()
      Specified by:
      getBlockEntityClass in interface IBE<FluidPipeBlockEntity>
    • getBlockEntityType

      public net.minecraft.world.level.block.entity.BlockEntityType<? extends FluidPipeBlockEntity> getBlockEntityType()
      Specified by:
      getBlockEntityType in interface IBE<FluidPipeBlockEntity>
    • supportsExternalFaceHiding

      public boolean supportsExternalFaceHiding(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      supportsExternalFaceHiding in interface net.neoforged.neoforge.common.extensions.IBlockExtension
    • getOcclusionShape

      public net.minecraft.world.phys.shapes.VoxelShape getOcclusionShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos)
      Overrides:
      getOcclusionShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • rotate

      public net.minecraft.world.level.block.state.BlockState rotate(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.Rotation pRotation)
      Overrides:
      rotate in class net.minecraft.world.level.block.state.BlockBehaviour
    • mirror

      public net.minecraft.world.level.block.state.BlockState mirror(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.Mirror pMirror)
      Overrides:
      mirror in class net.minecraft.world.level.block.state.BlockBehaviour
    • transform

      public net.minecraft.world.level.block.state.BlockState transform(net.minecraft.world.level.block.state.BlockState state, StructureTransform transform)
      Specified by:
      transform in interface TransformableBlock
    • codec

      @NotNull protected @NotNull com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.block.PipeBlock> codec()
      Specified by:
      codec in class net.minecraft.world.level.block.PipeBlock