Package net.minecraft.block
Class TargetBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.TargetBlock
- All Implemented Interfaces:
ItemConvertible
- Mappings:
Namespace Name official cquintermediary net/minecraft/class_4850named net/minecraft/block/TargetBlock
-
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
FieldsModifier and TypeFieldDescriptionprivate static final IntPropertyprivate static final intprivate static final intFields 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, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class net.minecraft.block.Block
afterBreak, 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, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
-
Field Details
-
POWER
- Mappings:
Namespace Name Mixin selector official aLcqu;a:Lcvr;intermediary field_22428Lnet/minecraft/class_4850;field_22428:Lnet/minecraft/class_2758;named POWERLnet/minecraft/block/TargetBlock;POWER:Lnet/minecraft/state/property/IntProperty;
-
RECOVERABLE_POWER_DELAY
private static final int RECOVERABLE_POWER_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector official bLcqu;b:Iintermediary field_31263Lnet/minecraft/class_4850;field_31263:Inamed RECOVERABLE_POWER_DELAYLnet/minecraft/block/TargetBlock;RECOVERABLE_POWER_DELAY:I
-
REGULAR_POWER_DELAY
private static final int REGULAR_POWER_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector official cLcqu;c:Iintermediary field_31264Lnet/minecraft/class_4850;field_31264:Inamed REGULAR_POWER_DELAYLnet/minecraft/block/TargetBlock;REGULAR_POWER_DELAY:I
-
-
Constructor Details
-
TargetBlock
- Mappings:
Namespace Name Mixin selector official <init>Lcuq;<init>(Lcuq$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
-
-
Method Details
-
onProjectileHit
public void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) - Overrides:
onProjectileHitin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcga;Lcur;Ldvp;Lbtx;)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 aLcqu;a(Lcgb;Lcur;Ldvp;Lbaq;)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
- Mappings:
Namespace Name Mixin selector official aLcqu;a(Ldvp;Ldvt;)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 aLcqu;a(Lcgb;Lcur;ILgt;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
- Overrides:
scheduledTickin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lafo;Lgt;Lalu;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
-
getWeakRedstonePower
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) - Overrides:
getWeakRedstonePowerin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcfg;Lgt;Lgy;)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
- Overrides:
emitsRedstonePowerin classAbstractBlock- Mappings:
Namespace Name Mixin selector official f_Lcuq;f_(Lcur;)Zintermediary method_9506Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Znamed emitsRedstonePowerLnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLciw;a(Lcus$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) - Overrides:
onBlockAddedin classAbstractBlock- Mappings:
Namespace Name Mixin selector official bLcuq;b(Lcur;Lcga;Lgt;Lcur;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
-