public class MechanicalPistonBlock extends DirectionalAxisKineticBlock implements ITE<MechanicalPistonTileEntity>
| Modifier and Type | Class and Description |
|---|---|
static class |
MechanicalPistonBlock.PistonState |
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.Propertiesnet.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>IRotate.SpeedLevel, IRotate.StressImpact| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isSticky |
static net.minecraft.state.EnumProperty<MechanicalPistonBlock.PistonState> |
STATE |
AXIS_ALONG_FIRST_COORDINATEFACINGcolorBLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Modifier | Constructor and Description |
|---|---|
protected |
MechanicalPistonBlock(net.minecraft.block.AbstractBlock.Properties properties,
boolean sticky) |
| 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.tileentity.TileEntity |
createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world) |
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) |
java.lang.Class<MechanicalPistonTileEntity> |
getTileEntityClass() |
static boolean |
isExtensionPole(net.minecraft.block.BlockState state) |
static boolean |
isPiston(net.minecraft.block.BlockState state) |
static boolean |
isPistonHead(net.minecraft.block.BlockState state) |
static boolean |
isStickyPiston(net.minecraft.block.BlockState state) |
static int |
maxAllowedPistonPoles() |
void |
neighborChanged(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block p_220069_4_,
net.minecraft.util.math.BlockPos fromPos,
boolean p_220069_6_) |
static MechanicalPistonBlock |
normal(net.minecraft.block.AbstractBlock.Properties properties) |
net.minecraft.util.ActionResultType |
onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context) |
void |
playerWillDestroy(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.entity.player.PlayerEntity player) |
static MechanicalPistonBlock |
sticky(net.minecraft.block.AbstractBlock.Properties properties) |
void |
tick(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random r) |
net.minecraft.util.ActionResultType |
use(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand handIn,
net.minecraft.util.math.BlockRayTraceResult hit) |
getAxisAlignmentForPlacement, getFacingForPlacement, getRotationAxis, getStateForPlacement, hasShaftTowards, prefersConnectionTo, rotategetPreferredFacing, mirrorareStatesKineticallyEquivalent, canHarvestBlock, getHarvestTool, getParticleInitialRadius, getParticleTargetRadius, hasTileEntity, isToolEffective, onPlace, setPlacedBy, updateIndirectNeighbourShapesanimateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, 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, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, onProjectileHit, onRemove, randomTick, skipRendering, spawnAfterBreak, triggerEvent, updateShape, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTileEntity, getTileEntityOptional, onTileEntityUse, withTileEntityDogetMinimumRequiredSpeedLevel, hideStressImpact, showCapacityWithAnnotationgetRotatedBlockState, onSneakWrenched, playRemoveSound, playRotateSound, updateAfterWrenchedaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, 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, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final net.minecraft.state.EnumProperty<MechanicalPistonBlock.PistonState> STATE
protected boolean isSticky
protected MechanicalPistonBlock(net.minecraft.block.AbstractBlock.Properties properties,
boolean sticky)
public static MechanicalPistonBlock normal(net.minecraft.block.AbstractBlock.Properties properties)
public static MechanicalPistonBlock sticky(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 DirectionalAxisKineticBlockpublic net.minecraft.util.ActionResultType use(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand handIn,
net.minecraft.util.math.BlockRayTraceResult hit)
use in class net.minecraft.block.AbstractBlockpublic void neighborChanged(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block p_220069_4_,
net.minecraft.util.math.BlockPos fromPos,
boolean p_220069_6_)
neighborChanged in class net.minecraft.block.AbstractBlockpublic void tick(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random r)
tick in class net.minecraft.block.AbstractBlockpublic net.minecraft.tileentity.TileEntity createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world)
createTileEntity in interface net.minecraftforge.common.extensions.IForgeBlockcreateTileEntity in class KineticBlockpublic net.minecraft.util.ActionResultType onWrenched(net.minecraft.block.BlockState state,
net.minecraft.item.ItemUseContext context)
onWrenched in interface IWrenchablepublic void playerWillDestroy(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.entity.player.PlayerEntity player)
playerWillDestroy in class net.minecraft.block.Blockpublic static int maxAllowedPistonPoles()
public 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)
getShape in class net.minecraft.block.AbstractBlockpublic java.lang.Class<MechanicalPistonTileEntity> getTileEntityClass()
getTileEntityClass in interface ITE<MechanicalPistonTileEntity>public static boolean isPiston(net.minecraft.block.BlockState state)
public static boolean isStickyPiston(net.minecraft.block.BlockState state)
public static boolean isExtensionPole(net.minecraft.block.BlockState state)
public static boolean isPistonHead(net.minecraft.block.BlockState state)