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
- Direct Known Subclasses:
RotatedInfestedBlock
- Mappings:
Namespace Name official cml
intermediary net/minecraft/class_2384
named net/minecraft/block/InfestedBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<BlockState,
BlockState> private static final Map<BlockState,
BlockState> private final Block
Fields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
ConstructorDescriptionInfestedBlock
(Block regularBlock, AbstractBlock.Settings settings) Creates an infested block -
Method Summary
Modifier and TypeMethodDescriptionprivate static BlockState
copyProperties
(Map<BlockState, BlockState> stateMap, BlockState fromState, Supplier<BlockState> toStateSupplier) static BlockState
fromRegularState
(BlockState regularState) static boolean
isInfestable
(BlockState block) void
onStacksDropped
(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) private void
spawnSilverfish
(ServerWorld world, BlockPos pos) toRegularState
(BlockState infestedState) Methods inherited from class net.minecraft.block.Block
afterBreak, appendProperties, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick
-
Field Details
-
REGULAR_TO_INFESTED_BLOCK
- Mappings:
Namespace Name Mixin selector official b
Lcml;b:Ljava/util/Map;
intermediary field_11179
Lnet/minecraft/class_2384;field_11179:Ljava/util/Map;
named REGULAR_TO_INFESTED_BLOCK
Lnet/minecraft/block/InfestedBlock;REGULAR_TO_INFESTED_BLOCK:Ljava/util/Map;
-
REGULAR_TO_INFESTED_STATE
- Mappings:
Namespace Name Mixin selector official c
Lcml;c:Ljava/util/Map;
intermediary field_33564
Lnet/minecraft/class_2384;field_33564:Ljava/util/Map;
named REGULAR_TO_INFESTED_STATE
Lnet/minecraft/block/InfestedBlock;REGULAR_TO_INFESTED_STATE:Ljava/util/Map;
-
INFESTED_TO_REGULAR_STATE
- Mappings:
Namespace Name Mixin selector official d
Lcml;d:Ljava/util/Map;
intermediary field_33565
Lnet/minecraft/class_2384;field_33565:Ljava/util/Map;
named INFESTED_TO_REGULAR_STATE
Lnet/minecraft/block/InfestedBlock;INFESTED_TO_REGULAR_STATE:Ljava/util/Map;
-
regularBlock
- Mappings:
Namespace Name Mixin selector official a
Lcml;a:Lciw;
intermediary field_11178
Lnet/minecraft/class_2384;field_11178:Lnet/minecraft/class_2248;
named regularBlock
Lnet/minecraft/block/InfestedBlock;regularBlock:Lnet/minecraft/block/Block;
-
-
Constructor Details
-
InfestedBlock
Creates an infested block- Parameters:
regularBlock
- the block this infested block should mimicsettings
- block settings- Mappings:
Namespace Name Mixin selector official <init>
Lcml;<init>(Lciw;Lcuq$c;)V
intermediary <init>
Lnet/minecraft/class_2384;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_4970$class_2251;)V
named <init>
Lnet/minecraft/block/InfestedBlock;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getRegularBlock
- Mappings:
Namespace Name Mixin selector official b
Lcml;b()Lciw;
intermediary method_10271
Lnet/minecraft/class_2384;method_10271()Lnet/minecraft/class_2248;
named getRegularBlock
Lnet/minecraft/block/InfestedBlock;getRegularBlock()Lnet/minecraft/block/Block;
-
isInfestable
- Mappings:
Namespace Name Mixin selector official h
Lcml;h(Lcur;)Z
intermediary method_10269
Lnet/minecraft/class_2384;method_10269(Lnet/minecraft/class_2680;)Z
named isInfestable
Lnet/minecraft/block/InfestedBlock;isInfestable(Lnet/minecraft/block/BlockState;)Z
-
spawnSilverfish
- Mappings:
Namespace Name Mixin selector official a
Lcml;a(Lafo;Lgt;)V
intermediary method_24797
Lnet/minecraft/class_2384;method_24797(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V
named spawnSilverfish
Lnet/minecraft/block/InfestedBlock;spawnSilverfish(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
-
onStacksDropped
public void onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) - Overrides:
onStacksDropped
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcuq;a(Lcur;Lafo;Lgt;Lcaa;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
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
-
fromRegularState
- Mappings:
Namespace Name Mixin selector official n
Lcml;n(Lcur;)Lcur;
intermediary method_36366
Lnet/minecraft/class_2384;method_36366(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;
named fromRegularState
Lnet/minecraft/block/InfestedBlock;fromRegularState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
-
toRegularState
- Mappings:
Namespace Name Mixin selector official o
Lcml;o(Lcur;)Lcur;
intermediary method_10270
Lnet/minecraft/class_2384;method_10270(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;
named toRegularState
Lnet/minecraft/block/InfestedBlock;toRegularState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
-
copyProperties
private static BlockState copyProperties(Map<BlockState, BlockState> stateMap, BlockState fromState, Supplier<BlockState> toStateSupplier) - Mappings:
Namespace Name Mixin selector official a
Lcml;a(Ljava/util/Map;Lcur;Ljava/util/function/Supplier;)Lcur;
intermediary method_36363
Lnet/minecraft/class_2384;method_36363(Ljava/util/Map;Lnet/minecraft/class_2680;Ljava/util/function/Supplier;)Lnet/minecraft/class_2680;
named copyProperties
Lnet/minecraft/block/InfestedBlock;copyProperties(Ljava/util/Map;Lnet/minecraft/block/BlockState;Ljava/util/function/Supplier;)Lnet/minecraft/block/BlockState;
-