Class PneumaticDoorBaseBlock
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.AbstractCamouflageBlock
me.desht.pneumaticcraft.common.block.PneumaticDoorBaseBlock
- All Implemented Interfaces:
IPneumaticWrenchable,IPneumaticCraftProbeable,PneumaticCraftEntityBlock,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
public class PneumaticDoorBaseBlock
extends AbstractCamouflageBlock
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.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
Fields inherited from class me.desht.pneumaticcraft.common.block.AbstractCamouflageBlock
BLOCK_ACCESS, BLOCK_POS, CAMO_STATEFields 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_DROPS, UPDATE_SUPPRESS_LIGHTFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.shapes.VoxelShapegetShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context) intgetSignal(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter blockAccess, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) net.minecraft.world.phys.shapes.VoxelShapegetUncamouflagedShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext ctx) The equivalent ofBlockBehaviour.getShape(BlockState, BlockGetter, BlockPos, CollisionContext), but for uncamouflaged camo blocks.booleanprotected booleanvoidneighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block block, net.minecraft.core.BlockPos fromPos, boolean isMoving) @Nullable net.minecraft.world.level.block.entity.BlockEntitynewBlockEntity(net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState) protected booleanDoes the block face the same way as the player when placed, or opposite?voidsetPlacedBy(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) Called when the block is placed in the world.Methods inherited from class me.desht.pneumaticcraft.common.block.AbstractCamouflageBlock
getCollisionShape, getInteractionShape, getLightBlock, getOcclusionShape, getUncamouflagedCollisionShape, getUncamouflagedRaytraceShape, getUncamouflagedRenderShape, hasDynamicShape, onDestroyedByPlayerMethods inherited from class me.desht.pneumaticcraft.common.block.AbstractPneumaticCraftBlock
addExtraInformation, appendHoverText, canPlaceLiquid, canRotateToTopOrBottom, connectionProperty, createBlockStateDefinition, doOpenGui, getAnalogOutputSignal, getFluidState, getRenderShape, getRotation, getRotation, getStateForPlacement, hasAnalogOutputSignal, isPathfindable, mirror, onNeighborChange, onRemove, onWrenched, pickupBlock, placeLiquid, playerDestroy, rotate, rotateCustom, rotateForgeWay, setRotation, updateShape, useMethods 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, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, 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, canSurvive, defaultDestroyTime, defaultMaterialColor, entityInside, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getPistonPushReaction, getSeed, getShadeBrightness, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isSignalSource, onPlace, onProjectileHit, randomTick, 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.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, 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
-
Constructor Details
-
PneumaticDoorBaseBlock
public PneumaticDoorBaseBlock()
-
-
Method Details
-
getShape
public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext context) - Overrides:
getShapein classAbstractCamouflageBlock
-
isWaterloggable
protected boolean isWaterloggable()- Overrides:
isWaterloggablein classAbstractPneumaticCraftBlock
-
setPlacedBy
public void setPlacedBy(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack) Called when the block is placed in the world.- Overrides:
setPlacedByin classAbstractPneumaticCraftBlock
-
neighborChanged
public void neighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block block, net.minecraft.core.BlockPos fromPos, boolean isMoving) - Overrides:
neighborChangedin classAbstractPneumaticCraftBlock
-
isRotatable
public boolean isRotatable()- Overrides:
isRotatablein classAbstractPneumaticCraftBlock
-
reversePlacementRotation
protected boolean reversePlacementRotation()Description copied from class:AbstractPneumaticCraftBlockDoes the block face the same way as the player when placed, or opposite?- Overrides:
reversePlacementRotationin classAbstractPneumaticCraftBlock- Returns:
- whether or not the block should be rotated 180 degrees on placement
-
getUncamouflagedShape
public net.minecraft.world.phys.shapes.VoxelShape getUncamouflagedShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.CollisionContext ctx) Description copied from class:AbstractCamouflageBlockThe equivalent ofBlockBehaviour.getShape(BlockState, BlockGetter, BlockPos, CollisionContext), but for uncamouflaged camo blocks.- Specified by:
getUncamouflagedShapein classAbstractCamouflageBlock- Parameters:
state- the blockstatereader- the worldpos- the block posctx- the selection context- Returns:
- the block's actual shape, when it isn't camouflaged
-
getSignal
public int getSignal(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.BlockGetter blockAccess, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) - Overrides:
getSignalin classnet.minecraft.world.level.block.state.BlockBehaviour
-
newBlockEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState) - Specified by:
newBlockEntityin interfacenet.minecraft.world.level.block.EntityBlock
-