Package net.minecraft.block
Class RespawnAnchorBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.RespawnAnchorBlock
- All Implemented Interfaces:
- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - official - dcx- intermediary - net/minecraft/class_4969- named - net/minecraft/block/RespawnAnchorBlock
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.BlockBlock.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final IntPropertystatic final com.mojang.serialization.MapCodec<RespawnAnchorBlock>static final intstatic final intprivate static final ImmutableList<Vec3i>private static final ImmutableList<Vec3i>Fields inherited from class net.minecraft.block.Blockfield_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.private static booleancanCharge(BlockState state) booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.static voidprivate voidexplode(BlockState state, World world, BlockPos explodedPos) findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos) findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) com.mojang.serialization.MapCodec<RespawnAnchorBlock>getCodec()intgetComparatorOutput(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0to15.static intgetLightLevel(BlockState state, int maxLevel) booleanhasComparatorOutput(BlockState state) Returns whether the block can have a comparator output.private static booleanhasStillWater(BlockPos pos, World world) private static booleanisChargeItem(ItemStack stack) static booleanonUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.voidrandomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.Methods inherited from class net.minecraft.block.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, 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, isTransparent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTickMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcx;a:Lcom/mojang/serialization/MapCodec;- intermediary - field_46427- Lnet/minecraft/class_4969;field_46427:Lcom/mojang/serialization/MapCodec;- named - CODEC- Lnet/minecraft/block/RespawnAnchorBlock;CODEC:Lcom/mojang/serialization/MapCodec;
 
- 
NO_CHARGESpublic static final int NO_CHARGES- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldcx;b:I- intermediary - field_31231- Lnet/minecraft/class_4969;field_31231:I- named - NO_CHARGES- Lnet/minecraft/block/RespawnAnchorBlock;NO_CHARGES:I
 
- 
MAX_CHARGESpublic static final int MAX_CHARGES- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldcx;c:I- intermediary - field_31232- Lnet/minecraft/class_4969;field_31232:I- named - MAX_CHARGES- Lnet/minecraft/block/RespawnAnchorBlock;MAX_CHARGES:I
 
- 
CHARGES- Mappings:
- Namespace - Name - Mixin selector - official - d- Ldcx;d:Ldkh;- intermediary - field_23153- Lnet/minecraft/class_4969;field_23153:Lnet/minecraft/class_2758;- named - CHARGES- Lnet/minecraft/block/RespawnAnchorBlock;CHARGES:Lnet/minecraft/state/property/IntProperty;
 
- 
VALID_HORIZONTAL_SPAWN_OFFSETS- Mappings:
- Namespace - Name - Mixin selector - official - e- Ldcx;e:Lcom/google/common/collect/ImmutableList;- intermediary - field_26442- Lnet/minecraft/class_4969;field_26442:Lcom/google/common/collect/ImmutableList;- named - VALID_HORIZONTAL_SPAWN_OFFSETS- Lnet/minecraft/block/RespawnAnchorBlock;VALID_HORIZONTAL_SPAWN_OFFSETS:Lcom/google/common/collect/ImmutableList;
 
- 
VALID_SPAWN_OFFSETS- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldcx;f:Lcom/google/common/collect/ImmutableList;- intermediary - field_26443- Lnet/minecraft/class_4969;field_26443:Lcom/google/common/collect/ImmutableList;- named - VALID_SPAWN_OFFSETS- Lnet/minecraft/block/RespawnAnchorBlock;VALID_SPAWN_OFFSETS:Lcom/google/common/collect/ImmutableList;
 
 
- 
- 
Constructor Details- 
RespawnAnchorBlock- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ldjg;<init>(Ldjg$d;)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- 
getCodec- Overrides:
- getCodecin class- Block
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldjg;a()Lcom/mojang/serialization/MapCodec;- intermediary - method_53969- Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;- named - getCodec- Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
 
- 
onUsepublic ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player. This, by default, is bound to using the right mouse button.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using world.isClient().If the action result is successful on a logical client, then the action will be sent to the logical server for processing. - Overrides:
- onUsein class- AbstractBlock
- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldjg;a(Ldjh;Lctp;Lhx;Lcfi;Lbka;Lelp;)Lbkb;- intermediary - method_9534- Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;- named - onUse- Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
 
- 
isChargeItem- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcx;a(Lcmy;)Z- intermediary - method_29289- Lnet/minecraft/class_4969;method_29289(Lnet/minecraft/class_1799;)Z- named - isChargeItem- Lnet/minecraft/block/RespawnAnchorBlock;isChargeItem(Lnet/minecraft/item/ItemStack;)Z
 
- 
canCharge- Mappings:
- Namespace - Name - Mixin selector - official - h- Ldcx;h(Ldjh;)Z- intermediary - method_29290- Lnet/minecraft/class_4969;method_29290(Lnet/minecraft/class_2680;)Z- named - canCharge- Lnet/minecraft/block/RespawnAnchorBlock;canCharge(Lnet/minecraft/block/BlockState;)Z
 
- 
hasStillWater- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcx;a(Lhx;Lctp;)Z- intermediary - method_29560- Lnet/minecraft/class_4969;method_29560(Lnet/minecraft/class_2338;Lnet/minecraft/class_1937;)Z- named - hasStillWater- Lnet/minecraft/block/RespawnAnchorBlock;hasStillWater(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/World;)Z
 
- 
explode- Mappings:
- Namespace - Name - Mixin selector - official - d- Ldcx;d(Ldjh;Lctp;Lhx;)V- intermediary - method_29561- Lnet/minecraft/class_4969;method_29561(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V- named - explode- Lnet/minecraft/block/RespawnAnchorBlock;explode(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
 
- 
isNether- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcx;a(Lctp;)Z- intermediary - method_27353- Lnet/minecraft/class_4969;method_27353(Lnet/minecraft/class_1937;)Z- named - isNether- Lnet/minecraft/block/RespawnAnchorBlock;isNether(Lnet/minecraft/world/World;)Z
 
- 
chargepublic static void charge(@Nullable @Nullable Entity charger, World world, BlockPos pos, BlockState state) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcx;a(Lblv;Lctp;Lhx;Ldjh;)V- intermediary - method_26382- Lnet/minecraft/class_4969;method_26382(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V- named - charge- Lnet/minecraft/block/RespawnAnchorBlock;charge(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
 
- 
randomDisplayTickCalled randomly on the client. Blocks may override this to spawn particles. UnlikeAbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)this is not affected by a game rule.- Overrides:
- randomDisplayTickin class- Block
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcwq;a(Ldjh;Lctp;Lhx;Lauv;)V- intermediary - method_9496- Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V- named - randomDisplayTick- Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
 
- 
appendPropertiesAppends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
- appendPropertiesin class- Block
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcwq;a(Ldji$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
 
- 
hasComparatorOutputReturns whether the block can have a comparator output.This does not check the current comparator output of the block. Use AbstractBlock.getComparatorOutput(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos)in that case.- Overrides:
- hasComparatorOutputin class- AbstractBlock
- Returns:
- whether the block can have a comparator output
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - d_- Ldjg;d_(Ldjh;)Z- intermediary - method_9498- Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z- named - hasComparatorOutput- Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
 
- 
getLightLevel- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcx;a(Ldjh;I)I- intermediary - method_26157- Lnet/minecraft/class_4969;method_26157(Lnet/minecraft/class_2680;I)I- named - getLightLevel- Lnet/minecraft/block/RespawnAnchorBlock;getLightLevel(Lnet/minecraft/block/BlockState;I)I
 
- 
getComparatorOutputReturns the comparator output of the block, from0to15.When overriding this, AbstractBlock.hasComparatorOutput(net.minecraft.block.BlockState)must also be overridden.- Overrides:
- getComparatorOutputin class- AbstractBlock
- Returns:
- the comparator output of the block, from 0to15
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldjg;a(Ldjh;Lctp;Lhx;)I- intermediary - method_9572- Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I- named - getComparatorOutput- Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
 
- 
findRespawnPositionpublic static Optional<Vec3d> findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcx;a(Lblz;Lcsz;Lhx;)Ljava/util/Optional;- intermediary - method_26156- Lnet/minecraft/class_4969;method_26156(Lnet/minecraft/class_1299;Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;)Ljava/util/Optional;- named - findRespawnPosition- Lnet/minecraft/block/RespawnAnchorBlock;findRespawnPosition(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
 
- 
findRespawnPositionprivate static Optional<Vec3d> findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcx;a(Lblz;Lcsz;Lhx;Z)Ljava/util/Optional;- intermediary - method_30842- Lnet/minecraft/class_4969;method_30842(Lnet/minecraft/class_1299;Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;Z)Ljava/util/Optional;- named - findRespawnPosition- Lnet/minecraft/block/RespawnAnchorBlock;findRespawnPosition(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;Z)Ljava/util/Optional;
 
 
-