@ParametersAreNonnullByDefault @MethodsReturnNonnullByDefault public class CogWheelBlock extends AbstractShaftBlock implements ICogWheel
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.StressImpactAXIScolorBLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Modifier | Constructor and Description |
|---|---|
protected |
CogWheelBlock(boolean large,
net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSurvive(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos) |
protected net.minecraft.util.Direction.Axis |
getAxisForPlacement(net.minecraft.item.BlockItemUseContext context) |
float |
getParticleInitialRadius() |
float |
getParticleTargetRadius() |
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.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
boolean |
isDedicatedCogWheel() |
boolean |
isLargeCog() |
boolean |
isSmallCog() |
static boolean |
isValidCogwheelPosition(boolean large,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction.Axis cogAxis) |
static CogWheelBlock |
large(net.minecraft.block.AbstractBlock.Properties properties) |
static CogWheelBlock |
small(net.minecraft.block.AbstractBlock.Properties properties) |
createBlockStateDefinition, createTileEntity, getFluidState, getPistonPushReaction, getRotationAxis, hasShaftTowards, isPathfindable, onRemove, onWrenched, removeBracket, updateShapegetPreferredAxis, rotateareStatesKineticallyEquivalent, canHarvestBlock, getHarvestTool, 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, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExplodedattack, canBeReplaced, canBeReplaced, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isSignalSource, mirror, neighborChanged, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, use, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisDedicatedCogItem, isDedicatedCogWheel, isLargeCog, isLargeCog, isLargeCogItem, isSmallCog, isSmallCog, isSmallCogItemgetMinimumRequiredSpeedLevel, getRotationAxis, hasShaftTowards, hideStressImpact, showCapacityWithAnnotationgetRotatedBlockState, onSneakWrenched, onWrenched, playRemoveSound, playRotateSound, updateAfterWrenchedcanPlaceLiquid, placeLiquid, takeLiquidtryRemoveBracketaddDestroyEffects, 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, shouldDisplayFluidOverlayprotected CogWheelBlock(boolean large,
net.minecraft.block.AbstractBlock.Properties properties)
public static CogWheelBlock small(net.minecraft.block.AbstractBlock.Properties properties)
public static CogWheelBlock large(net.minecraft.block.AbstractBlock.Properties properties)
public boolean isLargeCog()
isLargeCog in interface ICogWheelpublic boolean isSmallCog()
isSmallCog in interface ICogWheelpublic 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 boolean canSurvive(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos)
canSurvive in class net.minecraft.block.AbstractBlockpublic static boolean isValidCogwheelPosition(boolean large,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction.Axis cogAxis)
protected net.minecraft.util.Direction.Axis getAxisForPlacement(net.minecraft.item.BlockItemUseContext context)
public net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement in class AbstractShaftBlockpublic float getParticleTargetRadius()
getParticleTargetRadius in class KineticBlockpublic float getParticleInitialRadius()
getParticleInitialRadius in class KineticBlockpublic boolean isDedicatedCogWheel()
isDedicatedCogWheel in interface ICogWheel