Package net.minecraft.block
Class OxidizableBulbBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BulbBlock
net.minecraft.block.OxidizableBulbBlock
- All Implemented Interfaces:
- Degradable<Oxidizable.OxidationLevel>,- Oxidizable,- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - named - net/minecraft/block/OxidizableBulbBlock- intermediary - net/minecraft/class_8924- official - dsy
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>Nested classes/interfaces inherited from interface net.minecraft.block.OxidizableOxidizable.OxidationLevel
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<OxidizableBulbBlock> private final Oxidizable.OxidationLevelFields inherited from class net.minecraft.block.Blockfield_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.block.DegradableDEGRADING_RANGEFields inherited from interface net.minecraft.block.OxidizableOXIDATION_LEVEL_DECREASES, OXIDATION_LEVEL_INCREASESFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructorsConstructorDescriptionOxidizableBulbBlock(Oxidizable.OxidationLevel oxidationLevel, AbstractBlock.Settings settings) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected com.mojang.serialization.MapCodec<OxidizableBulbBlock> getCodec()protected booleanhasRandomTicks(BlockState state) protected voidrandomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.Methods inherited from class net.minecraft.block.BulbBlockappendProperties, getComparatorOutput, hasComparatorOutput, neighborUpdate, onBlockAdded, updateMethods inherited from class net.minecraft.block.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, 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.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, mirror, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, rotate, scheduledTickMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.DegradabletickDegradation, tryDegradeMethods inherited from interface net.minecraft.block.OxidizablegetDegradationChanceMultiplier, getDegradationResultMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/OxidizableBulbBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_47088- Lnet/minecraft/class_8924;field_47088:Lcom/mojang/serialization/MapCodec;- official - d- Ldsy;d:Lcom/mojang/serialization/MapCodec;
 
- 
oxidationLevel- Mappings:
- Namespace - Name - Mixin selector - named - oxidationLevel- Lnet/minecraft/block/OxidizableBulbBlock;oxidationLevel:Lnet/minecraft/block/Oxidizable$OxidationLevel;- intermediary - field_47089- Lnet/minecraft/class_8924;field_47089:Lnet/minecraft/class_5955$class_5811;- official - e- Ldsy;e:Ldsx$a;
 
 
- 
- 
Constructor Details- 
OxidizableBulbBlockpublic OxidizableBulbBlock(Oxidizable.OxidationLevel oxidationLevel, AbstractBlock.Settings settings) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/OxidizableBulbBlock;<init>(Lnet/minecraft/block/Oxidizable$OxidationLevel;Lnet/minecraft/block/AbstractBlock$Settings;)V- intermediary - <init>- Lnet/minecraft/class_8924;<init>(Lnet/minecraft/class_5955$class_5811;Lnet/minecraft/class_4970$class_2251;)V- official - <init>- Ldsy;<init>(Ldsx$a;Ldwx$d;)V
 
 
- 
- 
Method Details- 
getCodec- Overrides:
- getCodecin class- BulbBlock
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_53969- Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;- official - a- Ldwx;a()Lcom/mojang/serialization/MapCodec;
 
- 
randomTickCalled 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: - SugarCaneBlockuses this to grow sugar cane.
- OxidizableBlockuses this to oxidize.
- NetherPortalBlockuses this to spawn zombified piglins.
- LeavesBlockuses this to decay when far from logs.
 - Overrides:
- randomTickin class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - randomTick- Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V- intermediary - method_9514- Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V- official - b- Ldwx;b(Ldwy;Lard;Lji;Lazh;)V
 
- 
hasRandomTicks- Overrides:
- hasRandomTicksin class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - named - hasRandomTicks- Lnet/minecraft/block/AbstractBlock;hasRandomTicks(Lnet/minecraft/block/BlockState;)Z- intermediary - method_9542- Lnet/minecraft/class_4970;method_9542(Lnet/minecraft/class_2680;)Z- official - f- Ldwx;f(Ldwy;)Z
 
- 
getDegradationLevel- Specified by:
- getDegradationLevelin interface- Degradable<Oxidizable.OxidationLevel>
- Mappings:
- Namespace - Name - Mixin selector - named - getDegradationLevel- Lnet/minecraft/block/OxidizableBulbBlock;getDegradationLevel()Lnet/minecraft/block/Oxidizable$OxidationLevel;- intermediary - method_54768- Lnet/minecraft/class_8924;method_54768()Lnet/minecraft/class_5955$class_5811;- official - q- Ldsy;q()Ldsx$a;
 
 
-