public abstract class BlockPneumaticCraft extends net.minecraft.block.Block implements IPneumaticWrenchable, IUpgradeAcceptor, IPneumaticCraftProbeable
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[] |
CONNECTION_PROPERTIES |
static net.minecraft.state.BooleanProperty |
DOWN |
static net.minecraft.state.BooleanProperty |
EAST |
static net.minecraft.state.BooleanProperty |
NORTH |
static net.minecraft.state.BooleanProperty |
SOUTH |
static net.minecraft.state.EnumProperty<TemperatureCategory> |
TEMPERATURE |
static net.minecraft.state.BooleanProperty |
UP |
static net.minecraft.state.BooleanProperty |
WEST |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Modifier | Constructor and Description |
|---|---|
protected |
BlockPneumaticCraft(net.minecraft.block.AbstractBlock.Properties props) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtraInformation(net.minecraft.item.ItemStack stack,
net.minecraft.world.IBlockReader world,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.client.util.ITooltipFlag flag) |
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.IBlockReader world,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.client.util.ITooltipFlag flag) |
protected boolean |
canRotateToTopOrBottom() |
static net.minecraft.state.BooleanProperty |
connectionProperty(net.minecraft.util.Direction dir) |
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) |
int |
getAnalogOutputSignal(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
If hasComparatorInputOverride returns true, the return value from this is used instead of the redstone signal
strength when this block inputs to a comparator.
|
java.util.Map<EnumUpgrade,java.lang.Integer> |
getApplicableUpgrades()
This method is called as soon as an instance of this interface is registered, be aware.
|
net.minecraft.block.BlockRenderType |
getRenderShape(net.minecraft.block.BlockState state) |
net.minecraft.util.Direction |
getRotation(net.minecraft.block.BlockState state) |
protected net.minecraft.util.Direction |
getRotation(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext ctx) |
protected abstract java.lang.Class<? extends net.minecraft.tileentity.TileEntity> |
getTileEntityClass() |
java.lang.String |
getUpgradeAcceptorTranslationKey()
Get a translation key for this upgrade acceptor.
|
boolean |
hasAnalogOutputSignal(net.minecraft.block.BlockState state)
If this returns true, then comparators facing away from this block will use the value from
getComparatorInputOverride instead of the actual redstone signal strength.
|
boolean |
hasTileEntity(net.minecraft.block.BlockState state) |
boolean |
isPathfindable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.pathfinding.PathType type) |
boolean |
isRotatable() |
net.minecraft.block.BlockState |
mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror mirrorIn) |
void |
neighborChanged(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block block,
net.minecraft.util.math.BlockPos fromPos,
boolean isMoving) |
void |
onNeighborChange(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.BlockPos tilePos) |
void |
onRemove(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoving) |
boolean |
onWrenched(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
net.minecraft.util.Hand hand) |
void |
playerDestroy(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.tileentity.TileEntity te,
net.minecraft.item.ItemStack stack) |
protected boolean |
reversePlacementRotation()
Does the block face the same way as the player when placed, or opposite?
|
net.minecraft.block.BlockState |
rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation) |
protected boolean |
rotateCustom(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.util.Direction side)
Can be overridden to implement custom rotation behaviour for a block.
|
protected boolean |
rotateForgeWay() |
void |
setPlacedBy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.entity.LivingEntity entity,
net.minecraft.item.ItemStack stack) |
protected void |
setRotation(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction rotation) |
net.minecraft.block.BlockState |
updateShape(net.minecraft.block.BlockState stateIn,
net.minecraft.util.Direction facing,
net.minecraft.block.BlockState facingState,
net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.util.math.BlockPos facingPos) |
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 brtr) |
animateTick, 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, 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, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, isAir, isEntityBlock, isSignalSource, onPlace, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforBlockaddDestroyEffects, 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, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final net.minecraft.state.BooleanProperty UP
public static final net.minecraft.state.BooleanProperty DOWN
public static final net.minecraft.state.BooleanProperty NORTH
public static final net.minecraft.state.BooleanProperty EAST
public static final net.minecraft.state.BooleanProperty SOUTH
public static final net.minecraft.state.BooleanProperty WEST
public static final net.minecraft.state.BooleanProperty[] CONNECTION_PROPERTIES
public static final net.minecraft.state.EnumProperty<TemperatureCategory> TEMPERATURE
protected BlockPneumaticCraft(net.minecraft.block.AbstractBlock.Properties props)
public boolean hasTileEntity(net.minecraft.block.BlockState state)
hasTileEntity in interface net.minecraftforge.common.extensions.IForgeBlock@Nullable
public net.minecraft.tileentity.TileEntity createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world)
createTileEntity in interface net.minecraftforge.common.extensions.IForgeBlockprotected abstract java.lang.Class<? extends net.minecraft.tileentity.TileEntity> getTileEntityClass()
public java.lang.String getUpgradeAcceptorTranslationKey()
IUpgradeAcceptorgetUpgradeAcceptorTranslationKey in interface IUpgradeAcceptorpublic 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 brtr)
use in class net.minecraft.block.AbstractBlock@Nullable public net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext ctx)
getStateForPlacement in class net.minecraft.block.Blockprotected boolean reversePlacementRotation()
public void setPlacedBy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.entity.LivingEntity entity,
net.minecraft.item.ItemStack stack)
setPlacedBy in class net.minecraft.block.Blockpublic static net.minecraft.state.BooleanProperty connectionProperty(net.minecraft.util.Direction dir)
protected net.minecraft.util.Direction getRotation(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos)
public net.minecraft.util.Direction getRotation(net.minecraft.block.BlockState state)
protected void setRotation(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction rotation)
public boolean isRotatable()
protected boolean canRotateToTopOrBottom()
protected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition in class net.minecraft.block.Blockpublic 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 mirrorIn)
mirror in class net.minecraft.block.AbstractBlockpublic boolean onWrenched(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
net.minecraft.util.Hand hand)
onWrenched in interface IPneumaticWrenchableprotected boolean rotateForgeWay()
protected boolean rotateCustom(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.util.Direction side)
world - the worldpos - block positionstate - block stateside - the side clickedpublic void onNeighborChange(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.BlockPos tilePos)
onNeighborChange in interface net.minecraftforge.common.extensions.IForgeBlockpublic void neighborChanged(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block block,
net.minecraft.util.math.BlockPos fromPos,
boolean isMoving)
neighborChanged in class net.minecraft.block.AbstractBlockpublic void appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.IBlockReader world,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.client.util.ITooltipFlag flag)
appendHoverText in class net.minecraft.block.Blockprotected void addExtraInformation(net.minecraft.item.ItemStack stack,
net.minecraft.world.IBlockReader world,
java.util.List<net.minecraft.util.text.ITextComponent> curInfo,
net.minecraft.client.util.ITooltipFlag flag)
public boolean hasAnalogOutputSignal(net.minecraft.block.BlockState state)
hasAnalogOutputSignal in class net.minecraft.block.AbstractBlockpublic int getAnalogOutputSignal(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
getAnalogOutputSignal in class net.minecraft.block.AbstractBlockpublic java.util.Map<EnumUpgrade,java.lang.Integer> getApplicableUpgrades()
IUpgradeAcceptorgetApplicableUpgrades in interface IUpgradeAcceptorpublic net.minecraft.block.BlockRenderType getRenderShape(net.minecraft.block.BlockState state)
getRenderShape in class net.minecraft.block.AbstractBlockpublic void onRemove(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoving)
onRemove in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState updateShape(net.minecraft.block.BlockState stateIn,
net.minecraft.util.Direction facing,
net.minecraft.block.BlockState facingState,
net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.util.math.BlockPos facingPos)
updateShape in class net.minecraft.block.AbstractBlockpublic boolean isPathfindable(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.pathfinding.PathType type)
isPathfindable in class net.minecraft.block.AbstractBlockpublic void playerDestroy(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
@Nullable
net.minecraft.tileentity.TileEntity te,
net.minecraft.item.ItemStack stack)
playerDestroy in class net.minecraft.block.Block