Package net.minecraft
Class class_11592
- All Implemented Interfaces:
BlockEntityProvider,Degradable<Oxidizable.OxidationLevel>,FluidDrainable,FluidFillable,Oxidizable,Waterloggable,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/class_11592intermediary net/minecraft/class_11592official eaw
-
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>Nested classes/interfaces inherited from interface net.minecraft.block.Oxidizable
Oxidizable.OxidationLevel -
Field Summary
FieldsFields inherited from class net.minecraft.class_11582
field_61405Fields 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.block.Degradable
DEGRADING_RANGEFields inherited from interface net.minecraft.block.Oxidizable
OXIDATION_LEVEL_DECREASES, OXIDATION_LEVEL_INCREASESFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionclass_11592(Oxidizable.OxidationLevel oxidationLevel, SoundEvent soundEvent, SoundEvent soundEvent2, AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<class_11592> getCodec()protected booleanhasRandomTicks(BlockState state) booleanprotected voidrandomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.Methods inherited from class net.minecraft.class_11582
getPlacementState, getStateForNeighborUpdate, method_72582, method_72597, method_72600, method_72601Methods 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, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onUseWithItem, prepareMethods 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.block.Degradable
tickDegradation, tryDegradeMethods inherited from interface net.minecraft.block.Oxidizable
getDegradationChanceMultiplier, getDegradationResultMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabledMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
field_61433
- Mappings:
Namespace Name Mixin selector named field_61433Lnet/minecraft/class_11592;field_61433:Lcom/mojang/serialization/MapCodec;intermediary field_61433Lnet/minecraft/class_11592;field_61433:Lcom/mojang/serialization/MapCodec;official hLeaw;h:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
class_11592
public class_11592(Oxidizable.OxidationLevel oxidationLevel, SoundEvent soundEvent, SoundEvent soundEvent2, AbstractBlock.Settings settings)
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classclass_11582- 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;
-
hasRandomTicks
- Overrides:
hasRandomTicksin classAbstractBlock- Mappings:
Namespace Name Mixin selector named hasRandomTicksLnet/minecraft/block/AbstractBlock;hasRandomTicks(Lnet/minecraft/block/BlockState;)Zintermediary method_9542Lnet/minecraft/class_4970;method_9542(Lnet/minecraft/class_2680;)Zofficial fLeff;f(Lefg;)Z
-
randomTick
Called server-side when a block gets ticked randomly. This can be overridden to implement various logics, most commonly plant growth. Default implementation does nothing. To control the rate of the action, userandom.Random tick speed is controlled by the game rule
randomTickSpeedand can be disabled. Only blocks within 128-block cylinder (i.e. ignoring Y coordinates) around players receive random ticks.Blocks overriding this must use
AbstractBlock.Settings.ticksRandomly()block settings.Here are some examples:
-
uses this to grow sugar cane.
invalid reference
SugarCaneBlock -
uses this to oxidize.
invalid reference
OxidizableBlock -
uses this to spawn zombified piglins.
invalid reference
NetherPortalBlock -
uses this to decay when far from logs.
invalid reference
LeavesBlock
- Overrides:
randomTickin classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named randomTickLnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Vintermediary method_9514Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial bLeff;b(Lefg;Lauf;Ljb;Lbcr;)V
-
-
getDegradationLevel
- Specified by:
getDegradationLevelin interfaceDegradable<Oxidizable.OxidationLevel>- Mappings:
Namespace Name Mixin selector named getDegradationLevelLnet/minecraft/class_11592;getDegradationLevel()Lnet/minecraft/block/Oxidizable$OxidationLevel;intermediary method_72646Lnet/minecraft/class_11592;method_72646()Lnet/minecraft/class_5955$class_5811;official vLeaw;v()Leau$a;
-
method_72602
public boolean method_72602()- Overrides:
method_72602in classclass_11582- 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
-