Package net.minecraft.world.level.block
Class CopperGolemStatueBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.minecraft.world.level.block.CopperGolemStatueBlock
- All Implemented Interfaces:
FeatureElement,BucketPickup,EntityBlock,LiquidBlockContainer,SimpleWaterloggedBlock,ItemLike,IBlockExtension,IBucketPickupExtension
- Direct Known Subclasses:
WeatheringCopperGolemStatueBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.ShapePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CopperGolemStatueBlock> static final EnumProperty<Direction> static final EnumProperty<CopperGolemStatueBlock.Pose> private static final VoxelShapestatic final BooleanPropertyprivate final WeatheringCopper.WeatherStateFields 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_SKIP_ALL_SIDEEFFECTS, UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS, UPDATE_SKIP_ON_PLACE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, 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
ConstructorsConstructorDescriptionCopperGolemStatueBlock(WeatheringCopper.WeatherState pWeatheringState, BlockBehaviour.Properties pProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaffectNeighborsAfterRemoval(BlockState p_442726_, ServerLevel p_443277_, BlockPos p_442605_, boolean p_443611_) com.mojang.serialization.MapCodec<? extends CopperGolemStatueBlock> codec()protected voidprotected intgetAnalogOutputSignal(BlockState p_433184_, Level p_435102_, BlockPos p_433790_, Direction p_433645_) protected ItemStackgetCloneItemStack(LevelReader p_447207_, BlockPos p_446066_, BlockState p_445465_, boolean p_446800_) protected FluidStategetFluidState(BlockState p_434045_) protected VoxelShapegetOcclusionShape(BlockState p_451652_) protected VoxelShapegetShape(BlockState p_435171_, BlockGetter p_435686_, BlockPos p_434293_, CollisionContext p_436023_) getStateForPlacement(BlockPlaceContext p_432939_) protected booleanhasAnalogOutputSignal(BlockState p_434228_) protected booleanisPathfindable(BlockState p_433730_, PathComputationType p_435626_) protected BlockStatemirror(BlockState p_435122_, Mirror p_435553_) Returns the blockstate with the given mirror of the passed blockstate.@Nullable BlockEntitynewBlockEntity(BlockPos p_435983_, BlockState p_435356_) protected BlockStaterotate(BlockState p_436043_, Rotation p_434280_) Returns the blockstate with the given rotation from the passed blockstate.booleanshouldChangedStateKeepBlockEntity(BlockState p_432894_) (package private) voidupdatePose(Level pLevel, BlockState pState, BlockPos pPos, Player pPlayer) protected BlockStateupdateShape(BlockState p_435930_, LevelReader p_433586_, ScheduledTickAccess p_435299_, BlockPos p_434867_, Direction p_435129_, BlockPos p_433500_, BlockState p_434804_, RandomSource p_435737_) protected InteractionResultuseItemOn(ItemStack p_435502_, BlockState p_435541_, Level p_432823_, BlockPos p_433231_, Player p_433625_, InteractionHand p_434602_, BlockHitResult p_432789_) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, getMenuProvider, triggerEventMethods inherited from class net.minecraft.world.level.block.Block
animateTick, asBlock, asItem, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, column, column, cube, cube, defaultBlockState, destroy, dropFromBlockInteractLootTable, dropFromExplosion, dropFromLootTable, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, isAir, isCollisionShapeFullBlock, isRandomlyTicking, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, useShapeForLightOcclusion, useWithoutItemMethods 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
getListener, getTickerMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, ignitedByLava, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, playFallSound, playStepSound, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHidingMethods inherited from interface net.neoforged.neoforge.common.extensions.IBucketPickupExtension
getPickupSoundMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
Field Details
-
CODEC
-
FACING
-
POSE
-
WATERLOGGED
-
SHAPE
-
weatheringState
-
-
Constructor Details
-
CopperGolemStatueBlock
public CopperGolemStatueBlock(WeatheringCopper.WeatherState pWeatheringState, BlockBehaviour.Properties pProperties)
-
-
Method Details
-
codec
- Specified by:
codecin classBaseEntityBlock
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinitionin classBlock
-
getStateForPlacement
- Overrides:
getStateForPlacementin classBlock
-
rotate
Description copied from class:BlockBehaviourReturns the blockstate with the given rotation from the passed blockstate. If inapplicable, returns the passed blockstate.- Overrides:
rotatein classBlockBehaviour
-
mirror
Description copied from class:BlockBehaviourReturns the blockstate with the given mirror of the passed blockstate. If inapplicable, returns the passed blockstate.- Overrides:
mirrorin classBlockBehaviour
-
getShape
protected VoxelShape getShape(BlockState p_435171_, BlockGetter p_435686_, BlockPos p_434293_, CollisionContext p_436023_) - Overrides:
getShapein classBlockBehaviour
-
getOcclusionShape
- Overrides:
getOcclusionShapein classBlockBehaviour
-
getWeatheringState
-
useItemOn
protected InteractionResult useItemOn(ItemStack p_435502_, BlockState p_435541_, Level p_432823_, BlockPos p_433231_, Player p_433625_, InteractionHand p_434602_, BlockHitResult p_432789_) - Overrides:
useItemOnin classBlockBehaviour
-
updatePose
-
isPathfindable
- Overrides:
isPathfindablein classBlockBehaviour
-
newBlockEntity
- Specified by:
newBlockEntityin interfaceEntityBlock
-
shouldChangedStateKeepBlockEntity
- Overrides:
shouldChangedStateKeepBlockEntityin classBlockBehaviour
-
hasAnalogOutputSignal
- Overrides:
hasAnalogOutputSignalin classBlockBehaviour
-
getAnalogOutputSignal
protected int getAnalogOutputSignal(BlockState p_433184_, Level p_435102_, BlockPos p_433790_, Direction p_433645_) - Overrides:
getAnalogOutputSignalin classBlockBehaviour
-
getCloneItemStack
protected ItemStack getCloneItemStack(LevelReader p_447207_, BlockPos p_446066_, BlockState p_445465_, boolean p_446800_) - Overrides:
getCloneItemStackin classBlockBehaviour
-
affectNeighborsAfterRemoval
protected void affectNeighborsAfterRemoval(BlockState p_442726_, ServerLevel p_443277_, BlockPos p_442605_, boolean p_443611_) - Overrides:
affectNeighborsAfterRemovalin classBlockBehaviour
-
getFluidState
- Overrides:
getFluidStatein classBlockBehaviour
-
updateShape
protected BlockState updateShape(BlockState p_435930_, LevelReader p_433586_, ScheduledTickAccess p_435299_, BlockPos p_434867_, Direction p_435129_, BlockPos p_433500_, BlockState p_434804_, RandomSource p_435737_) - Overrides:
updateShapein classBlockBehaviour
-