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 ckj
intermediary net/minecraft/class_4850
named net/minecraft/block/TargetBlock
-
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 IntProperty
private static final int
private static final int
Fields inherited from class 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
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) private static int
calculatePower
(BlockHitResult hitResult, Vec3d pos) boolean
emitsRedstonePower
(BlockState state) int
getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) void
onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) void
onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) void
scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) private static void
setPower
(WorldAccess world, BlockState state, int power, BlockPos pos, int delay) private static int
trigger
(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, dropStack, 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
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, hasComparatorOutput, hasSidedTransparency, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
-
Field Details
-
POWER
- Mappings:
Namespace Name Mixin selector official a
Lckj;a:Lcpd;
intermediary field_22428
Lnet/minecraft/class_4850;field_22428:Lnet/minecraft/class_2758;
named POWER
Lnet/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 b
Lckj;b:I
intermediary field_31263
Lnet/minecraft/class_4850;field_31263:I
named RECOVERABLE_POWER_DELAY
Lnet/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 c
Lckj;c:I
intermediary field_31264
Lnet/minecraft/class_4850;field_31264:I
named REGULAR_POWER_DELAY
Lnet/minecraft/block/TargetBlock;REGULAR_POWER_DELAY:I
-
-
Constructor Details
-
TargetBlock
- Mappings:
Namespace Name Mixin selector official <init>
Lcob;<init>(Lcob$c;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
named <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:
onProjectileHit
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcob;a(Lcad;Lcoc;Ldoi;Lboh;)V
intermediary method_19286
Lnet/minecraft/class_4970;method_19286(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_3965;Lnet/minecraft/class_1676;)V
named onProjectileHit
Lnet/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 a
Lckj;a(Lcae;Lcoc;Ldoi;Lawt;)I
intermediary method_24858
Lnet/minecraft/class_4850;method_24858(Lnet/minecraft/class_1936;Lnet/minecraft/class_2680;Lnet/minecraft/class_3965;Lnet/minecraft/class_1297;)I
named trigger
Lnet/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 a
Lckj;a(Ldoi;Ldom;)I
intermediary method_24859
Lnet/minecraft/class_4850;method_24859(Lnet/minecraft/class_3965;Lnet/minecraft/class_243;)I
named calculatePower
Lnet/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 a
Lckj;a(Lcae;Lcoc;ILgh;I)V
intermediary method_24857
Lnet/minecraft/class_4850;method_24857(Lnet/minecraft/class_1936;Lnet/minecraft/class_2680;ILnet/minecraft/class_2338;I)V
named setPower
Lnet/minecraft/block/TargetBlock;setPower(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/block/BlockState;ILnet/minecraft/util/math/BlockPos;I)V
-
scheduledTick
- Overrides:
scheduledTick
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcob;a(Lcoc;Ladi;Lgh;Ljava/util/Random;)V
intermediary method_9588
Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
named scheduledTick
Lnet/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) - Overrides:
getWeakRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcob;a(Lcoc;Lbzj;Lgh;Lgm;)I
intermediary method_9524
Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
named getWeakRedstonePower
Lnet/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:
emitsRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official f_
Lcob;f_(Lcoc;)Z
intermediary method_9506
Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Z
named emitsRedstonePower
Lnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-
appendProperties
- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lccy;a(Lcod$a;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
named appendProperties
Lnet/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:
onBlockAdded
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lcob;b(Lcoc;Lcad;Lgh;Lcoc;Z)V
intermediary method_9615
Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
named onBlockAdded
Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-