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
public class InfestedBlock extends Block
- Mappings:
Namespace Name official cahintermediary net/minecraft/class_2384named net/minecraft/block/InfestedBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description private static Map<Block,Block>REGULAR_TO_INFESTEDprivate BlockregularBlockFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Constructor Description InfestedBlock(Block regularBlock, AbstractBlock.Settings settings)Creates an infested block -
Method Summary
Modifier and Type Method Description static BlockStatefromRegularBlock(Block regularBlock)BlockgetRegularBlock()static booleanisInfestable(BlockState block)voidonDestroyedByExplosion(World world, BlockPos pos, Explosion explosion)Called when this block is destroyed by an explosion.voidonStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)private voidspawnSilverfish(ServerWorld world, BlockPos pos)Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, method_33614, onBreak, onBroken, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick
-
Field Details
-
REGULAR_TO_INFESTED
- Mappings:
Namespace Name Mixin selector official bLcah;b:Ljava/util/Map;intermediary field_11179Lnet/minecraft/class_2384;field_11179:Ljava/util/Map;named REGULAR_TO_INFESTEDLnet/minecraft/block/InfestedBlock;REGULAR_TO_INFESTED:Ljava/util/Map;
-
regularBlock
- Mappings:
Namespace Name Mixin selector official aLcah;a:Lbwu;intermediary field_11178Lnet/minecraft/class_2384;field_11178:Lnet/minecraft/class_2248;named regularBlockLnet/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>Lcah;<init>(Lbwu;Lchs$c;)Vintermediary <init>Lnet/minecraft/class_2384;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_4970$class_2251;)Vnamed <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 cLcah;c()Lbwu;intermediary method_10271Lnet/minecraft/class_2384;method_10271()Lnet/minecraft/class_2248;named getRegularBlockLnet/minecraft/block/InfestedBlock;getRegularBlock()Lnet/minecraft/block/Block;
-
isInfestable
- Mappings:
Namespace Name Mixin selector official hLcah;h(Lcht;)Zintermediary method_10269Lnet/minecraft/class_2384;method_10269(Lnet/minecraft/class_2680;)Znamed isInfestableLnet/minecraft/block/InfestedBlock;isInfestable(Lnet/minecraft/block/BlockState;)Z
-
spawnSilverfish
- Mappings:
Namespace Name Mixin selector official aLcah;a(Laav;Lfx;)Vintermediary method_24797Lnet/minecraft/class_2384;method_24797(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Vnamed spawnSilverfishLnet/minecraft/block/InfestedBlock;spawnSilverfish(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
-
onStacksDropped
- Overrides:
onStacksDroppedin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLchs;a(Lcht;Laav;Lfx;Lbnv;)Vintermediary method_9565Lnet/minecraft/class_4970;method_9565(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)Vnamed onStacksDroppedLnet/minecraft/block/AbstractBlock;onStacksDropped(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)V
-
onDestroyedByExplosion
Called when this block is destroyed by an explosion.- Overrides:
onDestroyedByExplosionin classBlock- Mappings:
Namespace Name Mixin selector official aLbwu;a(Lbtv;Lfx;Lbtn;)Vintermediary method_9586Lnet/minecraft/class_2248;method_9586(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1927;)Vnamed onDestroyedByExplosionLnet/minecraft/block/Block;onDestroyedByExplosion(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/explosion/Explosion;)V
-
fromRegularBlock
- Mappings:
Namespace Name Mixin selector official aLcah;a(Lbwu;)Lcht;intermediary method_10270Lnet/minecraft/class_2384;method_10270(Lnet/minecraft/class_2248;)Lnet/minecraft/class_2680;named fromRegularBlockLnet/minecraft/block/InfestedBlock;fromRegularBlock(Lnet/minecraft/block/Block;)Lnet/minecraft/block/BlockState;
-