Class WeatheringCopperChestBlock
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.AbstractChestBlock<ChestBlockEntity>
net.minecraft.world.level.block.ChestBlock
net.minecraft.world.level.block.CopperChestBlock
net.minecraft.world.level.block.WeatheringCopperChestBlock
- All Implemented Interfaces:
FeatureElement, BucketPickup, ChangeOverTimeBlock<WeatheringCopper.WeatherState>, EntityBlock, LiquidBlockContainer, SimpleWaterloggedBlock, WeatheringCopper, ItemLike, IBlockExtension, IBucketPickupExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class Block
Block.UpdateFlagsNested classes/interfaces inherited from class BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicateNested classes/interfaces inherited from interface WeatheringCopper
WeatheringCopper.WeatherState -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<WeatheringCopperChestBlock> Fields inherited from class ChestBlock
EVENT_SET_OPEN_COUNT, FACING, TYPE, WATERLOGGEDFields inherited from class AbstractChestBlock
blockEntityTypeFields inherited from class 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 BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface ChangeOverTimeBlock
SCAN_DISTANCEFields inherited from interface FeatureElement
FILTERED_REGISTRIESFields inherited from interface WeatheringCopper
NEXT_BY_BLOCK, PREVIOUS_BY_BLOCK -
Constructor Summary
ConstructorsConstructorDescriptionWeatheringCopperChestBlock(WeatheringCopper.WeatherState weatherState, SoundEvent openSound, SoundEvent closeSound, BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<WeatheringCopperChestBlock> codec()getAge()protected booleanisRandomlyTicking(BlockState state) booleanisWaxed()protected voidrandomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random) Performs a random tick on a block.Methods inherited from class CopperChestBlock
chestCanConnectTo, getFromCopperBlock, getState, getStateForPlacement, shouldChangedStateKeepBlockEntity, updateShapeMethods inherited from class ChestBlock
affectNeighborsAfterRemoval, blockEntityType, combine, createBlockStateDefinition, getAnalogOutputSignal, getBlockType, getChestType, getCloseChestSound, getConnectedBlockPos, getConnectedDirection, getContainer, getFluidState, getMenuProvider, getOpenChestSound, getOpenChestStat, getShape, getTicker, hasAnalogOutputSignal, isChestBlockedAt, isPathfindable, mirror, newBlockEntity, opennessCombiner, rotate, tick, useWithoutItemMethods inherited from class BaseEntityBlock
createTickerHelper, triggerEventMethods inherited from class 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 BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, isAir, isCollisionShapeFullBlock, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ChangeOverTimeBlock
changeOverTime, getNextStateMethods inherited from interface EntityBlock
getListenerMethods inherited from interface FeatureElement
isEnabledMethods inherited from interface 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 IBucketPickupExtension
getPickupSoundMethods inherited from interface SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquidMethods inherited from interface WeatheringCopper
getChanceModifier, getNext
-
Field Details
-
CODEC
-
-
Constructor Details
-
WeatheringCopperChestBlock
public WeatheringCopperChestBlock(WeatheringCopper.WeatherState weatherState, SoundEvent openSound, SoundEvent closeSound, BlockBehaviour.Properties properties)
-
-
Method Details
-
codec
- Overrides:
codecin classCopperChestBlock
-
isRandomlyTicking
- Overrides:
isRandomlyTickingin classBlockBehaviour
-
randomTick
Description copied from class:BlockBehaviourPerforms a random tick on a block.- Overrides:
randomTickin classBlockBehaviour
-
getAge
- Specified by:
getAgein interfaceChangeOverTimeBlock<WeatheringCopper.WeatherState>
-
isWaxed
public boolean isWaxed()- Overrides:
isWaxedin classCopperChestBlock
-