public class GaugeBlock extends DirectionalAxisKineticBlock
| Modifier and Type | Class and Description |
|---|---|
static class |
GaugeBlock.Type |
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 |
|---|---|
static GaugeShaper |
GAUGE |
protected GaugeBlock.Type |
type |
AXIS_ALONG_FIRST_COORDINATEFACINGcolorBLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Modifier | Constructor and Description |
|---|---|
protected |
GaugeBlock(net.minecraft.block.AbstractBlock.Properties properties,
GaugeBlock.Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
animateTick(net.minecraft.block.BlockState stateIn,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand) |
net.minecraft.tileentity.TileEntity |
createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world) |
int |
getAnalogOutputSignal(net.minecraft.block.BlockState blockState,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos) |
protected boolean |
getAxisAlignmentForPlacement(net.minecraft.item.BlockItemUseContext context) |
protected net.minecraft.util.Direction |
getFacingForPlacement(net.minecraft.item.BlockItemUseContext context) |
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 |
hasAnalogOutputSignal(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) |
boolean |
shouldRenderHeadOnFace(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.util.Direction face) |
static GaugeBlock |
speed(net.minecraft.block.AbstractBlock.Properties properties) |
static GaugeBlock |
stress(net.minecraft.block.AbstractBlock.Properties properties) |
createBlockStateDefinition, getRotationAxis, hasShaftTowards, prefersConnectionTo, rotategetPreferredFacing, mirrorareStatesKineticallyEquivalent, canHarvestBlock, getHarvestTool, getParticleInitialRadius, getParticleTargetRadius, hasTileEntity, isToolEffective, onPlace, setPlacedBy, updateIndirectNeighbourShapesappendHoverText, 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, canSurvive, defaultMaterialColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, isAir, isEntityBlock, isSignalSource, neighborChanged, onProjectileHit, onRemove, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, updateShape, use, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMinimumRequiredSpeedLevel, hideStressImpact, showCapacityWithAnnotationgetRotatedBlockState, onSneakWrenched, onWrenched, 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 GaugeShaper GAUGE
protected GaugeBlock.Type type
protected GaugeBlock(net.minecraft.block.AbstractBlock.Properties properties,
GaugeBlock.Type type)
public static GaugeBlock speed(net.minecraft.block.AbstractBlock.Properties properties)
public static GaugeBlock stress(net.minecraft.block.AbstractBlock.Properties properties)
public 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.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement in class DirectionalAxisKineticBlockprotected net.minecraft.util.Direction getFacingForPlacement(net.minecraft.item.BlockItemUseContext context)
getFacingForPlacement in class DirectionalAxisKineticBlockprotected boolean getAxisAlignmentForPlacement(net.minecraft.item.BlockItemUseContext context)
getAxisAlignmentForPlacement in class DirectionalAxisKineticBlockpublic boolean shouldRenderHeadOnFace(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.util.Direction face)
public void animateTick(net.minecraft.block.BlockState stateIn,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand)
animateTick in class net.minecraft.block.Blockpublic 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 hasAnalogOutputSignal(net.minecraft.block.BlockState state)
hasAnalogOutputSignal in class net.minecraft.block.AbstractBlockpublic int getAnalogOutputSignal(net.minecraft.block.BlockState blockState,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos)
getAnalogOutputSignal in class net.minecraft.block.AbstractBlockpublic 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.AbstractBlock