public class BlockPressureTube extends BlockPneumaticCraftCamo implements net.minecraft.block.IWaterLoggable
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockPressureTube.ConnectionType
Tri-state representing the 3 possible states for a tube connection.
|
static class |
BlockPressureTube.Tier |
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 int |
CORE_MAX |
static int |
CORE_MIN |
BLOCK_ACCESS, BLOCK_POS, CAMO_STATECONNECTION_PROPERTIES, DOWN, EAST, NORTH, SOUTH, TEMPERATURE, UP, WESTBLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition| Constructor and Description |
|---|
BlockPressureTube(BlockPressureTube.Tier tier) |
| 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.fluid.FluidState |
getFluidState(net.minecraft.block.BlockState state) |
static TubeModule |
getFocusedModule(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player)
Get the tube module being looked at by the player, if any.
|
net.minecraft.item.ItemStack |
getPickBlock(net.minecraft.block.BlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player) |
int |
getSignal(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader par1IBlockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext ctx) |
int |
getTier() |
protected java.lang.Class<? extends net.minecraft.tileentity.TileEntity> |
getTileEntityClass() |
net.minecraft.util.math.shapes.VoxelShape |
getUncamouflagedShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext ctx)
The equivalent of
AbstractBlock.getShape(BlockState, IBlockReader, BlockPos, ISelectionContext), but for
uncamouflaged camo blocks. |
boolean |
isSignalSource(net.minecraft.block.BlockState state) |
net.minecraft.block.BlockState |
mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror mirrorIn) |
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) |
static net.minecraft.block.BlockState |
recalculateState(net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.block.BlockState stateIn) |
net.minecraft.block.BlockState |
rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation) |
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) |
boolean |
tryPlaceModule(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
net.minecraft.util.Hand hand,
boolean simulate) |
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) |
getCollisionShape, getInteractionShape, getLightBlock, getOcclusionShape, getShape, getUncamouflagedCollisionShape, getUncamouflagedRaytraceShape, getUncamouflagedRenderShape, hasDynamicShape, removedByPlayeraddExtraInformation, appendHoverText, canRotateToTopOrBottom, connectionProperty, createTileEntity, getAnalogOutputSignal, getApplicableUpgrades, getRenderShape, getRotation, getRotation, getUpgradeAcceptorTranslationKey, hasAnalogOutputSignal, hasTileEntity, isPathfindable, isRotatable, neighborChanged, onNeighborChange, playerDestroy, reversePlacementRotation, rotateCustom, rotateForgeWay, setRotationanimateTick, 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, 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, getDestroyProgress, getDirectSignal, getDrops, getLootTable, getMenuProvider, getOffsetType, getPistonPushReaction, getSeed, getShadeBrightness, getVisualShape, isAir, isEntityBlock, onPlace, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useShapeForLightOcclusiongetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanPlaceLiquid, placeLiquid, takeLiquidforBlockaddDestroyEffects, 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, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onPlantGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final int CORE_MIN
public static final int CORE_MAX
public BlockPressureTube(BlockPressureTube.Tier tier)
protected java.lang.Class<? extends net.minecraft.tileentity.TileEntity> getTileEntityClass()
getTileEntityClass in class BlockPneumaticCraftprotected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition in class BlockPneumaticCraft@Nullable public net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext ctx)
getStateForPlacement in class BlockPneumaticCraftpublic net.minecraft.fluid.FluidState getFluidState(net.minecraft.block.BlockState state)
getFluidState 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 BlockPneumaticCraftpublic static net.minecraft.block.BlockState recalculateState(net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.block.BlockState stateIn)
public net.minecraft.util.math.shapes.VoxelShape getUncamouflagedShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext ctx)
BlockPneumaticCraftCamoAbstractBlock.getShape(BlockState, IBlockReader, BlockPos, ISelectionContext), but for
uncamouflaged camo blocks.getUncamouflagedShape in class BlockPneumaticCraftCamostate - the blockstatereader - the worldpos - the block posctx - the selection contextpublic 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 BlockPneumaticCraftpublic int getTier()
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 BlockPneumaticCraftpublic boolean tryPlaceModule(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
net.minecraft.util.Hand hand,
boolean simulate)
public static TubeModule getFocusedModule(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player)
world - the worldpos - the blockposplayer - the playerpublic net.minecraft.item.ItemStack getPickBlock(net.minecraft.block.BlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player)
getPickBlock in interface net.minecraftforge.common.extensions.IForgeBlockpublic 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 IPneumaticWrenchableonWrenched in class BlockPneumaticCraftpublic 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 BlockPneumaticCraftpublic int getSignal(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader par1IBlockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side)
getSignal in class net.minecraft.block.AbstractBlockpublic boolean isSignalSource(net.minecraft.block.BlockState state)
isSignalSource in class net.minecraft.block.AbstractBlockpublic net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState state,
net.minecraft.util.Rotation rotation)
rotate in class BlockPneumaticCraftpublic net.minecraft.block.BlockState mirror(net.minecraft.block.BlockState state,
net.minecraft.util.Mirror mirrorIn)
mirror in class BlockPneumaticCraft