Class CartAssemblerBlock
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.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 ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested 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.StatePredicateNested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic 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, WATERLOGGEDFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, LOGGER, 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_LIGHTFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
ConstructorsConstructorDescriptionCartAssemblerBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanAssembleTo(net.minecraft.world.entity.vehicle.AbstractMinecart cart) booleancanMakeSlopes(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos) booleancanSurvive(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.BlockStatecreateAnchor(net.minecraft.world.level.block.state.BlockState state) protected voidcreateBlockStateDefinition(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.VoxelShapegetCollisionShape(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.DirectiongetHorizontalDirection(net.minecraft.world.level.block.state.BlockState blockState) net.minecraft.world.level.material.PushReactiongetPistonPushReaction(net.minecraft.world.level.block.state.BlockState state) protected net.minecraft.core.Direction.AxisgetRailAxis(net.minecraft.world.level.block.state.BlockState state) static net.minecraft.world.level.block.state.BlockStategetRailBlock(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.VoxelShapegetShape(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>booleanisPathfindable(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.BlockStatemirror(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Mirror mirror) voidneighborChanged(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) voidonMinecartPass(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.InteractionResultonSneakWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context) net.minecraft.world.InteractionResultonWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context) net.minecraft.world.level.block.state.BlockStaterotate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.Rotation rotation) net.minecraft.world.InteractionResultuse(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, updateStateMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, 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, getTags, 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, withPropertiesOfMethods 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, useShapeForLightOcclusionMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListenerMethods inherited from interface net.minecraftforge.common.extensions.IForgeBaseRailBlock
getRailMaxSpeedMethods 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, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onCaughtFire, onDestroyedByPlayer, onNeighborChange, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlayMethods inherited from interface com.simibubi.create.foundation.block.ITE
getTicker, getTileEntity, getTileEntityOptional, newBlockEntity, onTileEntityUse, withTileEntityDoMethods inherited from interface com.simibubi.create.content.contraptions.wrench.IWrenchable
getRotatedBlockState, playRemoveSound, playRotateSound, updateAfterWrenchedMethods 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:
createBlockStateDefinitionin classnet.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:
canMakeSlopesin interfacenet.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:
onMinecartPassin interfacenet.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:
usein classnet.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:
neighborChangedin classnet.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:
getShapePropertyin classnet.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:
getShapein classnet.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:
getCollisionShapein classnet.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:
getPistonPushReactionin classnet.minecraft.world.level.block.BaseRailBlock
-
getTileEntityClass
- Specified by:
getTileEntityClassin interfaceITE<CartAssemblerTileEntity>
-
getTileEntityType
public net.minecraft.world.level.block.entity.BlockEntityType<? extends CartAssemblerTileEntity> getTileEntityType()- Specified by:
getTileEntityTypein interfaceITE<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:
canSurvivein classnet.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:
getRequiredItemsin interfaceISpecialBlockItemRequirement
-
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:
getDropsin classnet.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:
onSneakWrenchedin interfaceIWrenchable
-
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:
isPathfindablein classnet.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:
onWrenchedin interfaceIWrenchable
-
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:
rotatein classnet.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:
mirrorin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getHorizontalDirection
public static net.minecraft.core.Direction getHorizontalDirection(net.minecraft.world.level.block.state.BlockState blockState)
-