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
net.minecraft.world.level.block.BaseRailBlock
com.simibubi.create.content.contraptions.components.structureMovement.mounted.CartAssemblerBlock
All Implemented Interfaces:
IWrenchable, ISpecialBlockItemRequirement, ITE<CartAssemblerTileEntity>, 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.minecraftforge.common.extensions.IForgeBaseRailBlock, net.minecraftforge.common.extensions.IForgeBlock, net.minecraftforge.common.extensions.IForgeBucketPickup, net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>

public class CartAssemblerBlock extends net.minecraft.world.level.block.BaseRailBlock implements ITE<CartAssemblerTileEntity>, IWrenchable, ISpecialBlockItemRequirement
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static class 
     

    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
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final net.minecraft.world.level.block.state.properties.Property<net.minecraft.world.level.block.state.properties.RailShape>
     
    static final net.minecraft.world.level.block.state.properties.Property<CartAssembleRailType>
     

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

    FLAT_AABB, HALF_BLOCK_AABB, WATERLOGGED

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

    Modifier and Type
    Method
    Description
    static boolean
    canAssembleTo(net.minecraft.world.entity.vehicle.AbstractMinecart cart)
     
    boolean
    canMakeSlopes(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos)
     
    boolean
    canSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos pos)
     
    static net.minecraft.world.level.block.state.BlockState
    createAnchor(net.minecraft.world.level.block.state.BlockState state)
     
    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)
     
    getActionForCart(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.vehicle.AbstractMinecart cart)
     
    net.minecraft.world.phys.shapes.VoxelShape
    getCollisionShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context)
     
    List<net.minecraft.world.item.ItemStack>
    getDrops(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.storage.loot.LootContext.Builder builder)
     
    List<net.minecraft.world.item.ItemStack>
    getDropsNoRail(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.entity.BlockEntity p_220077_3_, net.minecraft.world.entity.Entity p_220077_4_, net.minecraft.world.item.ItemStack p_220077_5_)
     
    static net.minecraft.core.Direction
    getHorizontalDirection(net.minecraft.world.level.block.state.BlockState blockState)
     
    net.minecraft.world.level.material.PushReaction
    getPistonPushReaction(net.minecraft.world.level.block.state.BlockState state)
     
    protected net.minecraft.core.Direction.Axis
    getRailAxis(net.minecraft.world.level.block.state.BlockState state)
     
    static net.minecraft.world.level.block.state.BlockState
    getRailBlock(net.minecraft.world.level.block.state.BlockState state)
     
    getRequiredItems(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity te)
     
    net.minecraft.world.phys.shapes.VoxelShape
    getShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context)
     
    net.minecraft.world.level.block.state.properties.Property<net.minecraft.world.level.block.state.properties.RailShape>
     
     
    net.minecraft.world.level.block.entity.BlockEntityType<? extends CartAssemblerTileEntity>
     
    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)
     
    net.minecraft.world.level.block.state.BlockState
    mirror(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Mirror mirror)
     
    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
    onMinecartPass(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.vehicle.AbstractMinecart cart)
     
    net.minecraft.world.InteractionResult
    onSneakWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
     
    net.minecraft.world.InteractionResult
    onWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
     
    net.minecraft.world.level.block.state.BlockState
    rotate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Rotation rotation)
     
    net.minecraft.world.InteractionResult
    use(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult blockRayTraceResult)
     

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

    getFluidState, getRailDirection, getStateForPlacement, isFlexibleRail, isRail, isRail, isStraight, onPlace, onRemove, updateDir, updateShape, updateState, updateState

    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, initializeClient, 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, getDestroyProgress, getDirectSignal, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getOffsetType, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isSignalSource, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, 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.IForgeBaseRailBlock

    getRailMaxSpeed

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

    getPickupSound

    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, playRemoveSound, playRotateSound, updateAfterWrenched

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

    canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
  • Field Details

    • POWERED

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

      public static final net.minecraft.world.level.block.state.properties.BooleanProperty BACKWARDS
    • RAIL_SHAPE

      public static final net.minecraft.world.level.block.state.properties.Property<net.minecraft.world.level.block.state.properties.RailShape> RAIL_SHAPE
    • RAIL_TYPE

      public static final net.minecraft.world.level.block.state.properties.Property<CartAssembleRailType> RAIL_TYPE
  • Constructor Details

    • CartAssemblerBlock

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

    • createAnchor

      public static net.minecraft.world.level.block.state.BlockState createAnchor(net.minecraft.world.level.block.state.BlockState state)
    • getRailBlock

      public static net.minecraft.world.level.block.state.BlockState getRailBlock(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
    • canMakeSlopes

      public boolean canMakeSlopes(@Nonnull net.minecraft.world.level.block.state.BlockState state, @Nonnull net.minecraft.world.level.BlockGetter world, @Nonnull net.minecraft.core.BlockPos pos)
      Specified by:
      canMakeSlopes in interface net.minecraftforge.common.extensions.IForgeBaseRailBlock
    • onMinecartPass

      public void onMinecartPass(@Nonnull net.minecraft.world.level.block.state.BlockState state, @Nonnull net.minecraft.world.level.Level world, @Nonnull net.minecraft.core.BlockPos pos, net.minecraft.world.entity.vehicle.AbstractMinecart cart)
      Specified by:
      onMinecartPass in interface net.minecraftforge.common.extensions.IForgeBaseRailBlock
    • getActionForCart

      public static CartAssemblerBlock.CartAssemblerAction getActionForCart(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.vehicle.AbstractMinecart cart)
    • canAssembleTo

      public static boolean canAssembleTo(net.minecraft.world.entity.vehicle.AbstractMinecart cart)
    • use

      @Nonnull public net.minecraft.world.InteractionResult use(@Nonnull net.minecraft.world.level.block.state.BlockState state, @Nonnull net.minecraft.world.level.Level world, @Nonnull net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, @Nonnull net.minecraft.world.InteractionHand hand, @Nonnull net.minecraft.world.phys.BlockHitResult blockRayTraceResult)
      Overrides:
      use in class net.minecraft.world.level.block.state.BlockBehaviour
    • neighborChanged

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

      @Nonnull public net.minecraft.world.level.block.state.properties.Property<net.minecraft.world.level.block.state.properties.RailShape> getShapeProperty()
      Specified by:
      getShapeProperty in class net.minecraft.world.level.block.BaseRailBlock
    • getShape

      @Nonnull public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState state, @Nonnull net.minecraft.world.level.BlockGetter worldIn, @Nonnull net.minecraft.core.BlockPos pos, @Nonnull net.minecraft.world.phys.shapes.CollisionContext context)
      Overrides:
      getShape in class net.minecraft.world.level.block.BaseRailBlock
    • getRailAxis

      protected net.minecraft.core.Direction.Axis getRailAxis(net.minecraft.world.level.block.state.BlockState state)
    • getCollisionShape

      @Nonnull public net.minecraft.world.phys.shapes.VoxelShape getCollisionShape(@Nonnull net.minecraft.world.level.block.state.BlockState state, @Nonnull net.minecraft.world.level.BlockGetter worldIn, @Nonnull net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context)
      Overrides:
      getCollisionShape in class net.minecraft.world.level.block.state.BlockBehaviour
    • getPistonPushReaction

      @Nonnull public net.minecraft.world.level.material.PushReaction getPistonPushReaction(@Nonnull net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      getPistonPushReaction in class net.minecraft.world.level.block.BaseRailBlock
    • getTileEntityClass

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

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

      public boolean canSurvive(@Nonnull net.minecraft.world.level.block.state.BlockState state, @Nonnull net.minecraft.world.level.LevelReader world, @Nonnull net.minecraft.core.BlockPos pos)
      Overrides:
      canSurvive in class net.minecraft.world.level.block.BaseRailBlock
    • getRequiredItems

      public ItemRequirement getRequiredItems(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity te)
      Specified by:
      getRequiredItems in interface ISpecialBlockItemRequirement
    • getDrops

      @Nonnull public List<net.minecraft.world.item.ItemStack> getDrops(@Nonnull net.minecraft.world.level.block.state.BlockState state, @Nonnull net.minecraft.world.level.storage.loot.LootContext.Builder builder)
      Overrides:
      getDrops in class net.minecraft.world.level.block.state.BlockBehaviour
    • getDropsNoRail

      public List<net.minecraft.world.item.ItemStack> getDropsNoRail(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.world.level.block.entity.BlockEntity p_220077_3_, @Nullable net.minecraft.world.entity.Entity p_220077_4_, net.minecraft.world.item.ItemStack p_220077_5_)
    • onSneakWrenched

      public net.minecraft.world.InteractionResult onSneakWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
      Specified by:
      onSneakWrenched in interface IWrenchable
    • 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
    • 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
    • rotate

      public net.minecraft.world.level.block.state.BlockState rotate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Rotation rotation)
      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 state, net.minecraft.world.level.block.Mirror mirror)
      Overrides:
      mirror in class net.minecraft.world.level.block.state.BlockBehaviour
    • getHorizontalDirection

      public static net.minecraft.core.Direction getHorizontalDirection(net.minecraft.world.level.block.state.BlockState blockState)