类 InfestedBlock
- java.lang.Object
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.InfestedBlock
-
- 所有已实现的接口:
ItemConvertible
public class InfestedBlock extends Block
- Mappings:
Namespace Name official ccdintermediary net/minecraft/class_2384named net/minecraft/block/InfestedBlock
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.block.Block
Block.NeighborGroup
-
从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
-
字段概要
字段 修饰符和类型 字段 说明 private static Map<Block,Block>REGULAR_TO_INFESTEDprivate BlockregularBlock-
从类继承的字段 net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, LOGGER, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
-
从类继承的字段 net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
-
构造器概要
构造器 构造器 说明 InfestedBlock(Block regularBlock, AbstractBlock.Settings settings)Creates an infested block
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 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)-
从类继承的方法 net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
-
从类继承的方法 net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick
-
-
-
-
字段详细资料
-
REGULAR_TO_INFESTED
private static final Map<Block,Block> REGULAR_TO_INFESTED
- Mappings:
Namespace Name Mixin selector official bLccd;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
private final Block regularBlock
- Mappings:
Namespace Name Mixin selector official aLccd;a:Lbyq;intermediary field_11178Lnet/minecraft/class_2384;field_11178:Lnet/minecraft/class_2248;named regularBlockLnet/minecraft/block/InfestedBlock;regularBlock:Lnet/minecraft/block/Block;
-
-
构造器详细资料
-
InfestedBlock
public InfestedBlock(Block regularBlock, AbstractBlock.Settings settings)
Creates an infested block- 参数:
regularBlock- the block this infested block should mimicsettings- block settings- Mappings:
Namespace Name Mixin selector official <init>Lccd;<init>(Lbyq;Lcjq$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
-
-
方法详细资料
-
getRegularBlock
public Block getRegularBlock()
- Mappings:
Namespace Name Mixin selector official cLccd;c()Lbyq;intermediary method_10271Lnet/minecraft/class_2384;method_10271()Lnet/minecraft/class_2248;named getRegularBlockLnet/minecraft/block/InfestedBlock;getRegularBlock()Lnet/minecraft/block/Block;
-
isInfestable
public static boolean isInfestable(BlockState block)
- Mappings:
Namespace Name Mixin selector official hLccd;h(Lcjr;)Zintermediary method_10269Lnet/minecraft/class_2384;method_10269(Lnet/minecraft/class_2680;)Znamed isInfestableLnet/minecraft/block/InfestedBlock;isInfestable(Lnet/minecraft/block/BlockState;)Z
-
spawnSilverfish
private void spawnSilverfish(ServerWorld world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLccd;a(Labj;Lgb;)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
public void onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
- 覆盖:
onStacksDropped在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Labj;Lgb;Lbpr;)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
public void onDestroyedByExplosion(World world, BlockPos pos, Explosion explosion)
Called when this block is destroyed by an explosion.- 覆盖:
onDestroyedByExplosion在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbvr;Lgb;Lbvj;)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
public static BlockState fromRegularBlock(Block regularBlock)
- Mappings:
Namespace Name Mixin selector official aLccd;a(Lbyq;)Lcjr;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;
-
-