类 TargetBlock
- java.lang.Object
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.TargetBlock
-
- 所有已实现的接口:
ItemConvertible
public class TargetBlock extends Block
- Mappings:
Namespace Name official cfzintermediary net/minecraft/class_4850named net/minecraft/block/TargetBlock
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.block.Block
Block.NeighborGroup
-
从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intfield_31263private static intfield_31264private static IntPropertyPOWER-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 TargetBlock(AbstractBlock.Settings settings)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)private static intcalculatePower(BlockHitResult hitResult, Vec3d pos)booleanemitsRedstonePower(BlockState state)intgetWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)voidonProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)private static voidsetPower(WorldAccess world, BlockState state, int power, BlockPos pos, int delay)private static inttrigger(WorldAccess world, BlockState state, BlockHitResult hitResult, Entity entity)-
从类继承的方法 net.minecraft.block.Block
addStacksForDisplay, afterBreak, 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, onDestroyedByExplosion, 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, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
-
-
-
-
字段详细资料
-
POWER
private static final IntProperty POWER
- Mappings:
Namespace Name Mixin selector official aLcfz;a:Lckr;intermediary field_22428Lnet/minecraft/class_4850;field_22428:Lnet/minecraft/class_2758;named POWERLnet/minecraft/block/TargetBlock;POWER:Lnet/minecraft/state/property/IntProperty;
-
field_31263
private static final int field_31263
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLcfz;b:Iintermediary field_31263Lnet/minecraft/class_4850;field_31263:Inamed field_31263Lnet/minecraft/block/TargetBlock;field_31263:I
-
field_31264
private static final int field_31264
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLcfz;c:Iintermediary field_31264Lnet/minecraft/class_4850;field_31264:Inamed field_31264Lnet/minecraft/block/TargetBlock;field_31264:I
-
-
构造器详细资料
-
TargetBlock
public TargetBlock(AbstractBlock.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lcjq;<init>(Lcjq$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
方法详细资料
-
onProjectileHit
public void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)
- 覆盖:
onProjectileHit在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lbvr;Lcjr;Ldlw;Lbjv;)Vintermediary method_19286Lnet/minecraft/class_4970;method_19286(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_3965;Lnet/minecraft/class_1676;)Vnamed onProjectileHitLnet/minecraft/block/AbstractBlock;onProjectileHit(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/hit/BlockHitResult;Lnet/minecraft/entity/projectile/ProjectileEntity;)V
-
trigger
private static int trigger(WorldAccess world, BlockState state, BlockHitResult hitResult, Entity entity)
- Mappings:
Namespace Name Mixin selector official aLcfz;a(Lbvs;Lcjr;Ldlw;Lasl;)Iintermediary method_24858Lnet/minecraft/class_4850;method_24858(Lnet/minecraft/class_1936;Lnet/minecraft/class_2680;Lnet/minecraft/class_3965;Lnet/minecraft/class_1297;)Inamed triggerLnet/minecraft/block/TargetBlock;trigger(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/hit/BlockHitResult;Lnet/minecraft/entity/Entity;)I
-
calculatePower
private static int calculatePower(BlockHitResult hitResult, Vec3d pos)
- Mappings:
Namespace Name Mixin selector official aLcfz;a(Ldlw;Ldma;)Iintermediary method_24859Lnet/minecraft/class_4850;method_24859(Lnet/minecraft/class_3965;Lnet/minecraft/class_243;)Inamed calculatePowerLnet/minecraft/block/TargetBlock;calculatePower(Lnet/minecraft/util/hit/BlockHitResult;Lnet/minecraft/util/math/Vec3d;)I
-
setPower
private static void setPower(WorldAccess world, BlockState state, int power, BlockPos pos, int delay)
- Mappings:
Namespace Name Mixin selector official aLcfz;a(Lbvs;Lcjr;ILgb;I)Vintermediary method_24857Lnet/minecraft/class_4850;method_24857(Lnet/minecraft/class_1936;Lnet/minecraft/class_2680;ILnet/minecraft/class_2338;I)Vnamed setPowerLnet/minecraft/block/TargetBlock;setPower(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/block/BlockState;ILnet/minecraft/util/math/BlockPos;I)V
-
scheduledTick
public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
- 覆盖:
scheduledTick在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official a_Lcjq;a_(Lcjr;Labj;Lgb;Ljava/util/Random;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
getWeakRedstonePower
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
- 覆盖:
getWeakRedstonePower在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbuv;Lgb;Lgg;)Iintermediary method_9524Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getWeakRedstonePowerLnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
emitsRedstonePower
public boolean emitsRedstonePower(BlockState state)
- 覆盖:
emitsRedstonePower在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official e_Lcjq;e_(Lcjr;)Zintermediary method_9506Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Znamed emitsRedstonePowerLnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-
appendProperties
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
- 覆盖:
appendProperties在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lcjs$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
- 覆盖:
onBlockAdded在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official bLcjq;b(Lcjr;Lbvr;Lgb;Lcjr;Z)Vintermediary method_9615Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onBlockAddedLnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
-