public class CartAssemblerBlock extends net.minecraft.block.AbstractRailBlock implements ITE<CartAssemblerTileEntity>, IWrenchable, ISpecialBlockItemRequirement
| Modifier and Type | Class and Description |
|---|---|
static class |
CartAssemblerBlock.CartAssemblerAction |
static class |
CartAssemblerBlock.MinecartAnchorBlock |
net.minecraft.block.Block.RenderSideCacheKeynet.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.IExtendedPositionPredicate<A>, net.minecraft.block.AbstractBlock.IPositionPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Properties| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.state.BooleanProperty |
BACKWARDS |
static net.minecraft.state.BooleanProperty |
POWERED |
static net.minecraft.state.Property<net.minecraft.state.properties.RailShape> |
RAIL_SHAPE |
static net.minecraft.state.Property<CartAssembleRailType> |
RAIL_TYPE |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Constructor and Description |
|---|
CartAssemblerBlock(net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canAssembleTo(net.minecraft.entity.item.minecart.AbstractMinecartEntity cart) |
boolean |
canMakeSlopes(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
boolean |
canSurvive(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos) |
static net.minecraft.block.BlockState |
createAnchor(net.minecraft.block.BlockState state) |
protected void |
createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
net.minecraft.tileentity.TileEntity |
createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world) |
static CartAssemblerBlock.CartAssemblerAction |
getActionForCart(net.minecraft.block.BlockState state,
net.minecraft.entity.item.minecart.AbstractMinecartEntity cart) |
net.minecraft.util.math.shapes.VoxelShape |
getCollisionShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
java.util.List<net.minecraft.item.ItemStack> |
getDrops(net.minecraft.block.BlockState state,
net.minecraft.loot.LootContext.Builder builder) |
java.util.List<net.minecraft.item.ItemStack> |
getDropsNoRail(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.tileentity.TileEntity p_220077_3_,
net.minecraft.entity.Entity p_220077_4_,
net.minecraft.item.ItemStack p_220077_5_) |
static net.minecraft.util.Direction |
getHorizontalDirection(net.minecraft.block.BlockState blockState) |
net.minecraft.block.material.PushReaction |
getPistonPushReaction(net.minecraft.block.BlockState state) |
protected net.minecraft.util.Direction.Axis |
getRailAxis(net.minecraft.block.BlockState state) |
static net.minecraft.block.BlockState |
getRailBlock(net.minecraft.block.BlockState state) |
ItemRequirement |
getRequiredItems(net.minecraft.block.BlockState state,
net.minecraft.tileentity.TileEntity te) |
net.minecraft.util.math.shapes.VoxelShape |
getShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
net.minecraft.state.Property<net.minecraft.state.properties.RailShape> |
getShapeProperty() |
java.lang.Class<CartAssemblerTileEntity> |
getTileEntityClass() |
boolean |
hasTileEntity(net.minecraft.block.BlockState state) |
boolean |
isPathfindable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.pathfinding.PathType type) |
net.minecraft.block.BlockState |
mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror mirror) |
void |
neighborChanged(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block blockIn,
net.minecraft.util.math.BlockPos fromPos,
boolean isMoving) |
void |
onMinecartPass(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.item.minecart.AbstractMinecartEntity cart) |
net.minecraft.util.ActionResultType |
onSneakWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context) |
net.minecraft.util.ActionResultType |
onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context) |
net.minecraft.block.BlockState |
rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation) |
net.minecraft.util.ActionResultType |
use(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult blockRayTraceResult) |
getRailDirection, getStateForPlacement, isFlexibleRail, isRail, isRail, isStraight, onPlace, onRemove, updateDir, updateState, updateStateanimateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExplodedattack, canBeReplaced, canBeReplaced, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isSignalSource, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTileEntity, getTileEntityOptional, onTileEntityUse, withTileEntityDogetRotatedBlockState, playRemoveSound, playRotateSound, updateAfterWrenchedgetAbstractBlock, getRailMaxSpeedaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final net.minecraft.state.BooleanProperty POWERED
public static final net.minecraft.state.BooleanProperty BACKWARDS
public static final net.minecraft.state.Property<net.minecraft.state.properties.RailShape> RAIL_SHAPE
public static final net.minecraft.state.Property<CartAssembleRailType> RAIL_TYPE
public CartAssemblerBlock(net.minecraft.block.AbstractBlock.Properties properties)
public static net.minecraft.block.BlockState createAnchor(net.minecraft.block.BlockState state)
public static net.minecraft.block.BlockState getRailBlock(net.minecraft.block.BlockState state)
protected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition in class net.minecraft.block.Blockpublic boolean hasTileEntity(net.minecraft.block.BlockState state)
hasTileEntity in interface net.minecraftforge.common.extensions.IForgeBlockpublic net.minecraft.tileentity.TileEntity createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world)
createTileEntity in interface net.minecraftforge.common.extensions.IForgeBlockpublic boolean canMakeSlopes(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.IBlockReader world,
@Nonnull
net.minecraft.util.math.BlockPos pos)
canMakeSlopes in interface net.minecraftforge.common.extensions.IAbstractRailBlockpublic void onMinecartPass(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.World world,
@Nonnull
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.item.minecart.AbstractMinecartEntity cart)
onMinecartPass in interface net.minecraftforge.common.extensions.IAbstractRailBlockpublic static CartAssemblerBlock.CartAssemblerAction getActionForCart(net.minecraft.block.BlockState state, net.minecraft.entity.item.minecart.AbstractMinecartEntity cart)
public static boolean canAssembleTo(net.minecraft.entity.item.minecart.AbstractMinecartEntity cart)
@Nonnull
public net.minecraft.util.ActionResultType use(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.World world,
@Nonnull
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
@Nonnull
net.minecraft.util.Hand hand,
@Nonnull
net.minecraft.util.math.BlockRayTraceResult blockRayTraceResult)
use in class net.minecraft.block.AbstractBlockpublic void neighborChanged(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.World worldIn,
@Nonnull
net.minecraft.util.math.BlockPos pos,
@Nonnull
net.minecraft.block.Block blockIn,
@Nonnull
net.minecraft.util.math.BlockPos fromPos,
boolean isMoving)
neighborChanged in class net.minecraft.block.AbstractRailBlock@Nonnull public net.minecraft.state.Property<net.minecraft.state.properties.RailShape> getShapeProperty()
getShapeProperty in class net.minecraft.block.AbstractRailBlock@Nonnull
public net.minecraft.util.math.shapes.VoxelShape getShape(net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.IBlockReader worldIn,
@Nonnull
net.minecraft.util.math.BlockPos pos,
@Nonnull
net.minecraft.util.math.shapes.ISelectionContext context)
getShape in class net.minecraft.block.AbstractRailBlockprotected net.minecraft.util.Direction.Axis getRailAxis(net.minecraft.block.BlockState state)
@Nonnull
public net.minecraft.util.math.shapes.VoxelShape getCollisionShape(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.IBlockReader worldIn,
@Nonnull
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context)
getCollisionShape in class net.minecraft.block.AbstractBlock@Nonnull
public net.minecraft.block.material.PushReaction getPistonPushReaction(@Nonnull
net.minecraft.block.BlockState state)
getPistonPushReaction in class net.minecraft.block.AbstractRailBlockpublic java.lang.Class<CartAssemblerTileEntity> getTileEntityClass()
getTileEntityClass in interface ITE<CartAssemblerTileEntity>public boolean canSurvive(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.world.IWorldReader world,
@Nonnull
net.minecraft.util.math.BlockPos pos)
canSurvive in class net.minecraft.block.AbstractRailBlockpublic ItemRequirement getRequiredItems(net.minecraft.block.BlockState state, net.minecraft.tileentity.TileEntity te)
getRequiredItems in interface ISpecialBlockItemRequirement@Nonnull
public java.util.List<net.minecraft.item.ItemStack> getDrops(@Nonnull
net.minecraft.block.BlockState state,
@Nonnull
net.minecraft.loot.LootContext.Builder builder)
getDrops in class net.minecraft.block.AbstractBlockpublic java.util.List<net.minecraft.item.ItemStack> getDropsNoRail(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld world,
net.minecraft.util.math.BlockPos pos,
@Nullable
net.minecraft.tileentity.TileEntity p_220077_3_,
@Nullable
net.minecraft.entity.Entity p_220077_4_,
net.minecraft.item.ItemStack p_220077_5_)
public net.minecraft.util.ActionResultType onSneakWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context)
onSneakWrenched in interface IWrenchablepublic boolean isPathfindable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.pathfinding.PathType type)
isPathfindable in class net.minecraft.block.AbstractBlockpublic net.minecraft.util.ActionResultType onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context)
onWrenched in interface IWrenchablepublic net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation)
rotate in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror mirror)
mirror in class net.minecraft.block.AbstractBlockpublic static net.minecraft.util.Direction getHorizontalDirection(net.minecraft.block.BlockState blockState)