Class SlidingDoorBlock

java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.DoorBlock
com.simibubi.create.content.decoration.slidingDoor.SlidingDoorBlock
All Implemented Interfaces:
IWrenchable, IBE<SlidingDoorBlockEntity>, IHaveBigOutline, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.ItemLike, net.neoforged.neoforge.common.extensions.IBlockExtension

public class SlidingDoorBlock extends net.minecraft.world.level.block.DoorBlock implements IWrenchable, IBE<SlidingDoorBlockEntity>, IHaveBigOutline
  • 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 Supplier<net.minecraft.world.level.block.state.properties.BlockSetType>
     
    static final Supplier<net.minecraft.world.level.block.state.properties.BlockSetType>
     
    static final Supplier<net.minecraft.world.level.block.state.properties.BlockSetType>
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     

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

    AABB_DOOR_THICKNESS, CODEC, EAST_AABB, FACING, HALF, HINGE, NORTH_AABB, OPEN, POWERED, SOUTH_AABB, WEST_AABB

    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
    SlidingDoorBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, net.minecraft.world.level.block.state.properties.BlockSetType type, boolean folds)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canSurvive(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.LevelReader pLevel, net.minecraft.core.BlockPos pPos)
     
    protected void
    createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> pBuilder)
     
    void
    deferUpdate(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos)
     
     
    net.minecraft.world.level.block.entity.BlockEntityType<? extends SlidingDoorBlockEntity>
     
    net.minecraft.world.phys.shapes.VoxelShape
    getInteractionShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos)
     
    net.minecraft.world.level.block.RenderShape
    getRenderShape(net.minecraft.world.level.block.state.BlockState pState)
     
    net.minecraft.world.phys.shapes.VoxelShape
    getShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.phys.shapes.CollisionContext pContext)
     
    net.minecraft.world.level.block.state.BlockState
    getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext pContext)
     
    glass(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, boolean folds)
     
    static boolean
    isDoorPowered(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    isDoubleDoor(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.state.properties.DoorHingeSide hinge, net.minecraft.core.Direction facing, net.minecraft.world.level.block.state.BlockState otherDoor)
     
    boolean
     
    metal(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, boolean folds)
     
    void
    neighborChanged(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.Block pBlock, net.minecraft.core.BlockPos pFromPos, boolean pIsMoving)
     
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    newBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    void
    onPlace(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pOldState, boolean pIsMoving)
     
    void
    setOpen(@Nullable net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, boolean open)
     
    stone(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, boolean folds)
     
    net.minecraft.world.level.block.state.BlockState
    updateShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.core.Direction pFacing, net.minecraft.world.level.block.state.BlockState pFacingState, net.minecraft.world.level.LevelAccessor pLevel, net.minecraft.core.BlockPos pCurrentPos, net.minecraft.core.BlockPos pFacingPos)
     
    protected net.minecraft.world.InteractionResult
    useWithoutItem(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.phys.BlockHitResult hitResult)
     

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

    codec, getSeed, isOpen, isPathfindable, isWoodenDoor, isWoodenDoor, mirror, onExplosionHit, playerWillDestroy, rotate, setPlacedBy, type

    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, 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, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isRandomlyTicking, isSignalSource, onProjectileHit, onRemove, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOn, 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 net.minecraft.world.flag.FeatureElement

    isEnabled

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

    getBlockEntity, getBlockEntityOptional, getTicker, 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, 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, supportsExternalFaceHiding

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

    getRotatedBlockState, onSneakWrenched, onWrenched, updateAfterWrenched
  • Field Details

    • TRAIN_SET_TYPE

      public static final Supplier<net.minecraft.world.level.block.state.properties.BlockSetType> TRAIN_SET_TYPE
    • GLASS_SET_TYPE

      public static final Supplier<net.minecraft.world.level.block.state.properties.BlockSetType> GLASS_SET_TYPE
    • STONE_SET_TYPE

      public static final Supplier<net.minecraft.world.level.block.state.properties.BlockSetType> STONE_SET_TYPE
    • VISIBLE

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

    • SlidingDoorBlock

      public SlidingDoorBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, net.minecraft.world.level.block.state.properties.BlockSetType type, boolean folds)
  • Method Details

    • metal

      public static SlidingDoorBlock metal(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, boolean folds)
    • glass

      public static SlidingDoorBlock glass(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, boolean folds)
    • stone

      public static SlidingDoorBlock stone(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, boolean folds)
    • isFoldingDoor

      public boolean isFoldingDoor()
    • 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> pBuilder)
      Overrides:
      createBlockStateDefinition in class net.minecraft.world.level.block.DoorBlock
    • getShape

      public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.phys.shapes.CollisionContext pContext)
      Overrides:
      getShape in class net.minecraft.world.level.block.DoorBlock
    • canSurvive

      public boolean canSurvive(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.LevelReader pLevel, net.minecraft.core.BlockPos pPos)
      Overrides:
      canSurvive in class net.minecraft.world.level.block.DoorBlock
    • getInteractionShape

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

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

      public void onPlace(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pOldState, boolean pIsMoving)
      Overrides:
      onPlace in class net.minecraft.world.level.block.state.BlockBehaviour
    • updateShape

      public net.minecraft.world.level.block.state.BlockState updateShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.core.Direction pFacing, net.minecraft.world.level.block.state.BlockState pFacingState, net.minecraft.world.level.LevelAccessor pLevel, net.minecraft.core.BlockPos pCurrentPos, net.minecraft.core.BlockPos pFacingPos)
      Overrides:
      updateShape in class net.minecraft.world.level.block.DoorBlock
    • setOpen

      public void setOpen(@Nullable @Nullable net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, boolean open)
      Overrides:
      setOpen in class net.minecraft.world.level.block.DoorBlock
    • neighborChanged

      public void neighborChanged(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.Block pBlock, net.minecraft.core.BlockPos pFromPos, boolean pIsMoving)
      Overrides:
      neighborChanged in class net.minecraft.world.level.block.DoorBlock
    • isDoorPowered

      public static boolean isDoorPowered(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState state)
    • useWithoutItem

      protected net.minecraft.world.InteractionResult useWithoutItem(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.phys.BlockHitResult hitResult)
      Overrides:
      useWithoutItem in class net.minecraft.world.level.block.DoorBlock
    • deferUpdate

      public void deferUpdate(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos)
    • isDoubleDoor

      public static boolean isDoubleDoor(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.block.state.properties.DoorHingeSide hinge, net.minecraft.core.Direction facing, net.minecraft.world.level.block.state.BlockState otherDoor)
    • getRenderShape

      public net.minecraft.world.level.block.RenderShape getRenderShape(net.minecraft.world.level.block.state.BlockState pState)
      Overrides:
      getRenderShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • newBlockEntity

      @Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      newBlockEntity in interface net.minecraft.world.level.block.EntityBlock
      Specified by:
      newBlockEntity in interface IBE<SlidingDoorBlockEntity>
    • getBlockEntityClass

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

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