Class AbstractPNCBlockWithBoundingBlocks
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
me.desht.pneumaticcraft.common.block.AbstractPneumaticCraftBlock
me.desht.pneumaticcraft.common.block.AbstractPNCBlockWithBoundingBlocks
- All Implemented Interfaces:
IPneumaticWrenchable,IPneumaticCraftProbeable,PneumaticCraftEntityBlock,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.block.BucketPickup,net.minecraft.world.level.block.EntityBlock,net.minecraft.world.level.block.LiquidBlockContainer,net.minecraft.world.level.block.SimpleWaterloggedBlock,net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeBlock,net.minecraftforge.common.extensions.IForgeBucketPickup
- Direct Known Subclasses:
SolarCompressorBlock
public abstract class AbstractPNCBlockWithBoundingBlocks
extends AbstractPneumaticCraftBlock
implements PneumaticCraftEntityBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetFunction, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A extends Object>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.BooleanPropertyFields inherited from class me.desht.pneumaticcraft.common.block.AbstractPneumaticCraftBlock
CONNECTION_PROPERTIES, DOWN, EAST, NORTH, SOUTH, UP, WESTFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPNCBlockWithBoundingBlocks(net.minecraft.world.level.block.state.BlockBehaviour.Properties props) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSurvive(net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.LevelReader world, @NotNull net.minecraft.core.BlockPos pos) protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) abstract net.minecraft.core.Vec3i[]@NotNull net.minecraft.world.phys.shapes.VoxelShapegetCollisionShape(net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter world, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.phys.shapes.CollisionContext context) net.minecraft.core.BlockPosgetMainPos(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos pos) @NotNull net.minecraft.world.phys.shapes.VoxelShapegetShape(net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter world, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.phys.shapes.CollisionContext context) abstract @Nullable net.minecraft.world.level.block.entity.BlockEntitynewBlockEntity(@NotNull net.minecraft.core.BlockPos pPos, @NotNull net.minecraft.world.level.block.state.BlockState pState) booleanonDestroyedByPlayer(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, boolean willHarvest, net.minecraft.world.level.material.FluidState fluid) voidonPlace(@NotNull net.minecraft.world.level.block.state.BlockState pState, @NotNull net.minecraft.world.level.Level pLevel, @NotNull net.minecraft.core.BlockPos pPos, @NotNull net.minecraft.world.level.block.state.BlockState pOldState, boolean pIsMoving) voidonRemove(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, boolean isMoving) booleanonWrenched(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face, net.minecraft.world.InteractionHand hand) voidplaceBoundingBlocks(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos mainPos) Places bounding blocks for the main blockvoidremoveBoundingBlocks(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos mainPos, @Nullable net.minecraft.world.entity.player.Player player) Removes the connected bounding blocks of the main blockvoidsetRotation(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction rotation) net.minecraft.world.InteractionResultuse(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult brtr) Methods inherited from class me.desht.pneumaticcraft.common.block.AbstractPneumaticCraftBlock
addExtraInformation, appendHoverText, canPlaceLiquid, canRotateToTopOrBottom, connectionProperty, doOpenGui, getAnalogOutputSignal, getFluidState, getRenderShape, getRotation, getRotation, getStateForPlacement, hasAnalogOutputSignal, isPathfindable, isRotatable, isWaterloggable, mirror, neighborChanged, onNeighborChange, pickupBlock, placeLiquid, playerDestroy, reversePlacementRotation, rotate, rotateCustom, rotateForgeWay, setPlacedBy, updateShapeMethods inherited from class net.minecraft.world.level.block.Block
animateTick, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getSeed, getShadeBrightness, getSignal, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isSignalSource, onProjectileHit, randomTick, requiredFeatures, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useShapeForLightOcclusionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListenerMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHidingMethods inherited from interface net.minecraftforge.common.extensions.IForgeBucketPickup
getPickupSoundMethods inherited from interface me.desht.pneumaticcraft.common.block.PneumaticCraftEntityBlock
getTickerMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
getPickupSound
-
Field Details
-
BOUNDING
public static final net.minecraft.world.level.block.state.properties.BooleanProperty BOUNDING
-
-
Constructor Details
-
AbstractPNCBlockWithBoundingBlocks
public AbstractPNCBlockWithBoundingBlocks(net.minecraft.world.level.block.state.BlockBehaviour.Properties props)
-
-
Method Details
-
getShape
@NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.BlockGetter world, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.phys.shapes.CollisionContext context) - Overrides:
getShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getCollisionShape
@NotNull public @NotNull net.minecraft.world.phys.shapes.VoxelShape getCollisionShape(net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.BlockGetter world, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.phys.shapes.CollisionContext context) - Overrides:
getCollisionShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
createBlockStateDefinition
protected void createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) - Overrides:
createBlockStateDefinitionin classAbstractPneumaticCraftBlock
-
newBlockEntity
@Nullable public abstract @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(@NotNull @NotNull net.minecraft.core.BlockPos pPos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState pState) - Specified by:
newBlockEntityin interfacenet.minecraft.world.level.block.EntityBlock
-
getBoundingBlockOffsets
@Nonnull public abstract net.minecraft.core.Vec3i[] getBoundingBlockOffsets() -
getMainPos
public net.minecraft.core.BlockPos getMainPos(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos pos) -
canSurvive
public boolean canSurvive(net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.LevelReader world, @NotNull @NotNull net.minecraft.core.BlockPos pos) - Overrides:
canSurvivein classnet.minecraft.world.level.block.state.BlockBehaviour
-
removeBoundingBlocks
public void removeBoundingBlocks(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos mainPos, @Nullable @Nullable net.minecraft.world.entity.player.Player player) Removes the connected bounding blocks of the main block- Parameters:
state- main block statelevel- main block levelmainPos- main block positionplayer- player to spawn break particles around, null if no particles should spawn
-
placeBoundingBlocks
public void placeBoundingBlocks(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos mainPos) Places bounding blocks for the main block- Parameters:
level- main block levelmainPos- main block position
-
onDestroyedByPlayer
public boolean onDestroyedByPlayer(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, boolean willHarvest, net.minecraft.world.level.material.FluidState fluid) - Specified by:
onDestroyedByPlayerin interfacenet.minecraftforge.common.extensions.IForgeBlock
-
setRotation
public void setRotation(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction rotation) - Overrides:
setRotationin classAbstractPneumaticCraftBlock
-
onWrenched
public boolean onWrenched(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face, net.minecraft.world.InteractionHand hand) - Specified by:
onWrenchedin interfaceIPneumaticWrenchable- Overrides:
onWrenchedin classAbstractPneumaticCraftBlock
-
onPlace
public void onPlace(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState pState, @NotNull @NotNull net.minecraft.world.level.Level pLevel, @NotNull @NotNull net.minecraft.core.BlockPos pPos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState pOldState, boolean pIsMoving) - Overrides:
onPlacein classnet.minecraft.world.level.block.state.BlockBehaviour
-
onRemove
public void onRemove(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, boolean isMoving) - Overrides:
onRemovein classAbstractPneumaticCraftBlock
-
use
public net.minecraft.world.InteractionResult use(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult brtr) - Overrides:
usein classAbstractPneumaticCraftBlock
-