public class LinearChassisBlock extends AbstractChassisBlock
| Modifier and Type | Class and Description |
|---|---|
static class |
LinearChassisBlock.ChassisCTBehaviour |
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 |
STICKY_BOTTOM |
static net.minecraft.state.BooleanProperty |
STICKY_TOP |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Constructor and Description |
|---|
LinearChassisBlock(net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
net.minecraft.state.BooleanProperty |
getGlueableSide(net.minecraft.block.BlockState state,
net.minecraft.util.Direction face) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
protected boolean |
glueAllowedOnSide(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.util.Direction side) |
static boolean |
isChassis(net.minecraft.block.BlockState state) |
static boolean |
sameKind(net.minecraft.block.BlockState state1,
net.minecraft.block.BlockState state2) |
net.minecraft.block.BlockState |
updateShape(net.minecraft.block.BlockState state,
net.minecraft.util.Direction side,
net.minecraft.block.BlockState other,
net.minecraft.world.IWorld p_196271_4_,
net.minecraft.util.math.BlockPos p_196271_5_,
net.minecraft.util.math.BlockPos p_196271_6_) |
createTileEntity, hasTileEntity, mirror, rotate, useanimateTick, 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, canSurvive, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, neighborChanged, onPlace, onProjectileHit, onRemove, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRotatedBlockState, onSneakWrenched, onWrenched, playRemoveSound, playRotateSound, updateAfterWrenchedaddDestroyEffects, 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 STICKY_TOP
public static final net.minecraft.state.BooleanProperty STICKY_BOTTOM
public LinearChassisBlock(net.minecraft.block.AbstractBlock.Properties properties)
protected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition in class net.minecraft.block.RotatedPillarBlockpublic net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement in class net.minecraft.block.RotatedPillarBlockpublic net.minecraft.block.BlockState updateShape(net.minecraft.block.BlockState state,
net.minecraft.util.Direction side,
net.minecraft.block.BlockState other,
net.minecraft.world.IWorld p_196271_4_,
net.minecraft.util.math.BlockPos p_196271_5_,
net.minecraft.util.math.BlockPos p_196271_6_)
updateShape in class net.minecraft.block.AbstractBlockpublic net.minecraft.state.BooleanProperty getGlueableSide(net.minecraft.block.BlockState state,
net.minecraft.util.Direction face)
getGlueableSide in class AbstractChassisBlockprotected boolean glueAllowedOnSide(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.util.Direction side)
glueAllowedOnSide in class AbstractChassisBlockpublic static boolean isChassis(net.minecraft.block.BlockState state)
public static boolean sameKind(net.minecraft.block.BlockState state1,
net.minecraft.block.BlockState state2)