Class class_11582
- All Implemented Interfaces:
BlockEntityProvider,FluidDrainable,FluidFillable,Waterloggable,ItemConvertible,ToggleableFeature
- Direct Known Subclasses:
class_11592
- Mappings:
Namespace Name named net/minecraft/class_11582intermediary net/minecraft/class_11582official dsj
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<class_11582> private final Oxidizable.OxidationLevelFields inherited from class net.minecraft.block.ChestBlock
CHEST_TYPE, CODEC, FACING, field_31057, WATERLOGGEDFields inherited from class net.minecraft.block.AbstractChestBlock
entityTypeRetrieverFields inherited from class net.minecraft.block.Block
field_31023, field_31024, field_31025, FORCE_STATE, FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_BLOCK_ADDED_CALLBACK, SKIP_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_DROPS, SKIP_REDRAW_AND_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionclass_11582(Oxidizable.OxidationLevel oxidationLevel, SoundEvent soundEvent, SoundEvent soundEvent2, AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends class_11582> getCodec()protected BlockStategetStateForNeighborUpdate(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.booleanmethod_72582(BlockState blockState) static Blockmethod_72597(Block block) private Optional<BlockState> method_72598(class_11582 class_11582, BlockState blockState) booleanmethod_72600(BlockState blockState) booleanMethods inherited from class net.minecraft.block.ChestBlock
appendProperties, canPathfindThrough, createBlockEntity, createScreenHandlerFactory, getAnimationProgressRetriever, getBlockEntitySource, getComparatorOutput, getDoubleBlockType, getExpectedEntityType, getFacing, getFluidState, getInventory, getOpenStat, getOutlineShape, getTicker, hasComparatorOutput, isChestBlocked, method_72581, method_72583, method_72584, mirror, onStateReplaced, onUse, rotate, scheduledTickMethods inherited from class net.minecraft.block.BlockWithEntity
onSyncedBlockEvent, validateTickerMethods inherited from class net.minecraft.block.Block
afterBreak, asBlock, asItem, canMobSpawnInside, cannotConnect, createColumnShape, createColumnShape, createCubeShape, createCuboidShape, createCuboidShape, createCuboidZShape, createCuboidZShape, createCuboidZShape, createShapeArray, createShapeFunction, createShapeFunction, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getRegistryEntry, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, method_72546, method_72547, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onUseWithItem, prepare, randomTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.BlockEntityProvider
getGameEventListenerMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabledMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
field_61405
- Mappings:
Namespace Name Mixin selector named field_61405Lnet/minecraft/class_11582;field_61405:Lcom/mojang/serialization/MapCodec;intermediary field_61405Lnet/minecraft/class_11582;field_61405:Lcom/mojang/serialization/MapCodec;official gLdsj;g:Lcom/mojang/serialization/MapCodec;
-
field_61406
- Mappings:
Namespace Name Mixin selector named field_61406Lnet/minecraft/class_11582;field_61406:Ljava/util/Map;intermediary field_61406Lnet/minecraft/class_11582;field_61406:Ljava/util/Map;official hLdsj;h:Ljava/util/Map;
-
field_61407
- Mappings:
Namespace Name Mixin selector named field_61407Lnet/minecraft/class_11582;field_61407:Lnet/minecraft/block/Oxidizable$OxidationLevel;intermediary field_61407Lnet/minecraft/class_11582;field_61407:Lnet/minecraft/class_5955$class_5811;official iLdsj;i:Leau$a;
-
-
Constructor Details
-
class_11582
public class_11582(Oxidizable.OxidationLevel oxidationLevel, SoundEvent soundEvent, SoundEvent soundEvent2, AbstractBlock.Settings settings)
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classChestBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLeff;a()Lcom/mojang/serialization/MapCodec;
-
method_72582
- Overrides:
method_72582in classChestBlock- Mappings:
Namespace Name Mixin selector named method_72582Lnet/minecraft/block/ChestBlock;method_72582(Lnet/minecraft/block/BlockState;)Zintermediary method_72582Lnet/minecraft/class_2281;method_72582(Lnet/minecraft/class_2680;)Zofficial iLdrx;i(Lefg;)Z
-
getPlacementState
- Overrides:
getPlacementStatein classChestBlock- Mappings:
Namespace Name Mixin selector named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;official aLdqt;a(Ldhi;)Lefg;
-
getStateForNeighborUpdate
protected BlockState getStateForNeighborUpdate(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.Returning
breaks the block. This is useful to implement supporting block requirement for blocks (if used along withinvalid reference
Blocks#AIRAbstractBlock.canPlaceAt(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.util.math.BlockPos)).Side effects like activating a redstone component (but not scheduling a tick) should be performed in
AbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.world.block.WireOrientation, boolean)instead. If the block supports waterlogging and currently has water, this method should be overridden to tick the fluid at the block's position.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
World.isClient. This is not called ifBlock.FORCE_STATEflag is set in thesetBlockStatecall.This method can be used for multiple purposes. Here are some examples:
-
uses it to update the fence's connection when a horizontally neighboring block's state is changed.
invalid reference
FenceBlock -
uses it to break the plant if the state change causes it to lose its supporting block.
invalid reference
PlantBlock -
uses it to copy the state of the other half of the door.
invalid reference
DoorBlock -
uses it to schedule the fluid to tick if waterlogged.
invalid reference
SlabBlock -
uses it to schedule the water block above to tick so that it becomes a bubble column.
invalid reference
SoulSandBlock -
uses it to schedule the block to tick so that it can fall if needed.
invalid reference
FallingBlock
- Overrides:
getStateForNeighborUpdatein classChestBlock- Parameters:
state- the state of this blockworld- the worldpos- the position of this blockdirection- the direction from this block to the neighborneighborPos- the position of the neighbor blockneighborState- the state of the updated neighbor block- Returns:
- the state of the block after a neighboring block's state change
- See Also:
- Mappings:
Namespace Name Mixin selector named getStateForNeighborUpdateLnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/world/tick/ScheduledTickView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/block/BlockState;intermediary method_9559Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_10225;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_5819;)Lnet/minecraft/class_2680;official aLeff;a(Lefg;Ldnr;Ldod;Ljb;Ljh;Ljb;Lefg;Lbcr;)Lefg;
-
-
method_72598
- Mappings:
Namespace Name Mixin selector named method_72598Lnet/minecraft/class_11582;method_72598(Lnet/minecraft/class_11582;Lnet/minecraft/block/BlockState;)Ljava/util/Optional;intermediary method_72598Lnet/minecraft/class_11582;method_72598(Lnet/minecraft/class_11582;Lnet/minecraft/class_2680;)Ljava/util/Optional;official aLdsj;a(Ldsj;Lefg;)Ljava/util/Optional;
-
method_72601
- Mappings:
Namespace Name Mixin selector named method_72601Lnet/minecraft/class_11582;method_72601()Lnet/minecraft/block/Oxidizable$OxidationLevel;intermediary method_72601Lnet/minecraft/class_11582;method_72601()Lnet/minecraft/class_5955$class_5811;official tLdsj;t()Leau$a;
-
method_72597
- Mappings:
Namespace Name Mixin selector named method_72597Lnet/minecraft/class_11582;method_72597(Lnet/minecraft/block/Block;)Lnet/minecraft/block/Block;intermediary method_72597Lnet/minecraft/class_11582;method_72597(Lnet/minecraft/class_2248;)Lnet/minecraft/class_2248;official aLdsj;a(Ldqt;)Ldqt;
-
method_72602
public boolean method_72602()- Mappings:
Namespace Name Mixin selector named method_72602Lnet/minecraft/class_11582;method_72602()Zintermediary method_72602Lnet/minecraft/class_11582;method_72602()Zofficial uLdsj;u()Z
-
method_72600
- Overrides:
method_72600in classAbstractBlock- Mappings:
Namespace Name Mixin selector named method_72600Lnet/minecraft/block/AbstractBlock;method_72600(Lnet/minecraft/block/BlockState;)Zintermediary method_72600Lnet/minecraft/class_4970;method_72600(Lnet/minecraft/class_2680;)Zofficial oLeff;o(Lefg;)Z
-