Package net.minecraft.block
Class InfestedBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.InfestedBlock
- All Implemented Interfaces:
- ItemConvertible,- ToggleableFeature
- Direct Known Subclasses:
- RotatedInfestedBlock
- Mappings:
- Namespace - Name - named - net/minecraft/block/InfestedBlock- intermediary - net/minecraft/class_2384- official - dja
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.BlockBlock.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<InfestedBlock> private static final Map<BlockState, BlockState> private static final Map<BlockState, BlockState> private final BlockFields 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, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructorsConstructorDescriptionInfestedBlock(Block regularBlock, AbstractBlock.Settings settings) Creates an infested block
- 
Method SummaryModifier and TypeMethodDescriptionprivate static BlockStatecopyProperties(Map<BlockState, BlockState> stateMap, BlockState fromState, Supplier<BlockState> toStateSupplier) static BlockStatefromRegularState(BlockState regularState) com.mojang.serialization.MapCodec<? extends InfestedBlock> getCodec()static booleanisInfestable(BlockState block) protected voidonStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.private voidspawnSilverfish(ServerWorld world, BlockPos pos) toRegularState(BlockState infestedState) Methods inherited from class net.minecraft.block.BlockafterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, 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, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, rotate, scheduledTickMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/InfestedBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46373- Lnet/minecraft/class_2384;field_46373:Lcom/mojang/serialization/MapCodec;- official - a- Ldja;a:Lcom/mojang/serialization/MapCodec;
 
- 
REGULAR_TO_INFESTED_BLOCK- Mappings:
- Namespace - Name - Mixin selector - named - REGULAR_TO_INFESTED_BLOCK- Lnet/minecraft/block/InfestedBlock;REGULAR_TO_INFESTED_BLOCK:Ljava/util/Map;- intermediary - field_11179- Lnet/minecraft/class_2384;field_11179:Ljava/util/Map;- official - c- Ldja;c:Ljava/util/Map;
 
- 
REGULAR_TO_INFESTED_STATE- Mappings:
- Namespace - Name - Mixin selector - named - REGULAR_TO_INFESTED_STATE- Lnet/minecraft/block/InfestedBlock;REGULAR_TO_INFESTED_STATE:Ljava/util/Map;- intermediary - field_33564- Lnet/minecraft/class_2384;field_33564:Ljava/util/Map;- official - d- Ldja;d:Ljava/util/Map;
 
- 
INFESTED_TO_REGULAR_STATE- Mappings:
- Namespace - Name - Mixin selector - named - INFESTED_TO_REGULAR_STATE- Lnet/minecraft/block/InfestedBlock;INFESTED_TO_REGULAR_STATE:Ljava/util/Map;- intermediary - field_33565- Lnet/minecraft/class_2384;field_33565:Ljava/util/Map;- official - e- Ldja;e:Ljava/util/Map;
 
- 
regularBlock- Mappings:
- Namespace - Name - Mixin selector - named - regularBlock- Lnet/minecraft/block/InfestedBlock;regularBlock:Lnet/minecraft/block/Block;- intermediary - field_11178- Lnet/minecraft/class_2384;field_11178:Lnet/minecraft/class_2248;- official - b- Ldja;b:Ldfb;
 
 
- 
- 
Constructor Details- 
InfestedBlockCreates an infested block- Parameters:
- regularBlock- the block this infested block should mimic
- settings- block settings
- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/InfestedBlock;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/AbstractBlock$Settings;)V- intermediary - <init>- Lnet/minecraft/class_2384;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_4970$class_2251;)V- official - <init>- Ldja;<init>(Ldfb;Ldsd$d;)V
 
 
- 
- 
Method Details- 
getCodec- Overrides:
- getCodecin class- Block
- 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- Ldsd;a()Lcom/mojang/serialization/MapCodec;
 
- 
getRegularBlock- Mappings:
- Namespace - Name - Mixin selector - named - getRegularBlock- Lnet/minecraft/block/InfestedBlock;getRegularBlock()Lnet/minecraft/block/Block;- intermediary - method_10271- Lnet/minecraft/class_2384;method_10271()Lnet/minecraft/class_2248;- official - b- Ldja;b()Ldfb;
 
- 
isInfestable- Mappings:
- Namespace - Name - Mixin selector - named - isInfestable- Lnet/minecraft/block/InfestedBlock;isInfestable(Lnet/minecraft/block/BlockState;)Z- intermediary - method_10269- Lnet/minecraft/class_2384;method_10269(Lnet/minecraft/class_2680;)Z- official - m- Ldja;m(Ldse;)Z
 
- 
spawnSilverfish- Mappings:
- Namespace - Name - Mixin selector - named - spawnSilverfish- Lnet/minecraft/block/InfestedBlock;spawnSilverfish(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_24797- Lnet/minecraft/class_2384;method_24797(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V- official - a- Ldja;a(Larf;Liz;)V
 
- 
onStacksDroppedprotected void onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion. This is mostly overridden to drop experience orbs. To change the dropped item stacks, use loot tables orBlock.getDroppedStacks(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.block.entity.BlockEntity). To drop inventory contents, useAbstractBlock.onStateReplaced(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean)instead.Experience orbs should only be dropped if dropExperienceistrue.Block.dropExperienceWhenMined(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.item.ItemStack, net.minecraft.util.math.intprovider.IntProvider)can be used to drop experience orbs.ExperienceDroppingBlockprovides the implementation for experience-dropping blocks.- Overrides:
- onStacksDroppedin class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - onStacksDropped- Lnet/minecraft/block/AbstractBlock;onStacksDropped(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;Z)V- intermediary - method_9565- Lnet/minecraft/class_4970;method_9565(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;Z)V- official - a- Ldsd;a(Ldse;Larf;Liz;Lcur;Z)V
 
- 
fromRegularState- Mappings:
- Namespace - Name - Mixin selector - named - fromRegularState- Lnet/minecraft/block/InfestedBlock;fromRegularState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;- intermediary - method_36366- Lnet/minecraft/class_2384;method_36366(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;- official - n- Ldja;n(Ldse;)Ldse;
 
- 
toRegularState- Mappings:
- Namespace - Name - Mixin selector - named - toRegularState- Lnet/minecraft/block/InfestedBlock;toRegularState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;- intermediary - method_10270- Lnet/minecraft/class_2384;method_10270(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;- official - o- Ldja;o(Ldse;)Ldse;
 
- 
copyPropertiesprivate static BlockState copyProperties(Map<BlockState, BlockState> stateMap, BlockState fromState, Supplier<BlockState> toStateSupplier) - Mappings:
- Namespace - Name - Mixin selector - named - copyProperties- Lnet/minecraft/block/InfestedBlock;copyProperties(Ljava/util/Map;Lnet/minecraft/block/BlockState;Ljava/util/function/Supplier;)Lnet/minecraft/block/BlockState;- intermediary - method_36363- Lnet/minecraft/class_2384;method_36363(Ljava/util/Map;Lnet/minecraft/class_2680;Ljava/util/function/Supplier;)Lnet/minecraft/class_2680;- official - a- Ldja;a(Ljava/util/Map;Ldse;Ljava/util/function/Supplier;)Ldse;
 
 
-