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 named net/minecraft/block/RespawnAnchorBlockintermediary net/minecraft/class_4969official dud
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier 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.Block
field_31023, field_31024, field_31025, FORCE_STATE, FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_BLOCK_ADDED_CALLBACK, SKIP_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_DROPS, SKIP_REDRAW_AND_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.private static booleancanCharge(BlockState state) protected booleancanPathfindThrough(BlockState state, 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()protected intgetComparatorOutput(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0to15.static intgetLightLevel(BlockState state, int maxLevel) protected 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 booleanprotected ActionResultonUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultonUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) voidrandomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.Methods inherited from class net.minecraft.block.Block
afterBreak, asBlock, asItem, canMobSpawnInside, cannotConnect, createColumnShape, createColumnShape, createCubeShape, createCuboidShape, createCuboidShape, createCuboidZShape, createCuboidZShape, createCuboidZShape, createShapeArray, createShapeFunction, createShapeFunction, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPlacementState, getRawIdFromState, getRegistryEntry, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/RespawnAnchorBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46427Lnet/minecraft/class_4969;field_46427:Lcom/mojang/serialization/MapCodec;official aLdud;a:Lcom/mojang/serialization/MapCodec;
-
NO_CHARGES
public static final int NO_CHARGES- See Also:
- Mappings:
Namespace Name Mixin selector named NO_CHARGESLnet/minecraft/block/RespawnAnchorBlock;NO_CHARGES:Iintermediary field_31231Lnet/minecraft/class_4969;field_31231:Iofficial bLdud;b:I
-
MAX_CHARGES
public static final int MAX_CHARGES- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_CHARGESLnet/minecraft/block/RespawnAnchorBlock;MAX_CHARGES:Iintermediary field_31232Lnet/minecraft/class_4969;field_31232:Iofficial cLdud;c:I
-
CHARGES
- Mappings:
Namespace Name Mixin selector named CHARGESLnet/minecraft/block/RespawnAnchorBlock;CHARGES:Lnet/minecraft/state/property/IntProperty;intermediary field_23153Lnet/minecraft/class_4969;field_23153:Lnet/minecraft/class_2758;official dLdud;d:Lecq;
-
VALID_HORIZONTAL_SPAWN_OFFSETS
- Mappings:
Namespace Name Mixin selector named VALID_HORIZONTAL_SPAWN_OFFSETSLnet/minecraft/block/RespawnAnchorBlock;VALID_HORIZONTAL_SPAWN_OFFSETS:Lcom/google/common/collect/ImmutableList;intermediary field_26442Lnet/minecraft/class_4969;field_26442:Lcom/google/common/collect/ImmutableList;official eLdud;e:Lcom/google/common/collect/ImmutableList;
-
VALID_SPAWN_OFFSETS
- Mappings:
Namespace Name Mixin selector named VALID_SPAWN_OFFSETSLnet/minecraft/block/RespawnAnchorBlock;VALID_SPAWN_OFFSETS:Lcom/google/common/collect/ImmutableList;intermediary field_26443Lnet/minecraft/class_4969;field_26443:Lcom/google/common/collect/ImmutableList;official fLdud;f:Lcom/google/common/collect/ImmutableList;
-
-
Constructor Details
-
RespawnAnchorBlock
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Lebp;<init>(Lebp$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLebp;a()Lcom/mojang/serialization/MapCodec;
-
onUseWithItem
protected ActionResult onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) - Overrides:
onUseWithItemin classAbstractBlock- Mappings:
Namespace Name Mixin selector named onUseWithItemLnet/minecraft/block/AbstractBlock;onUseWithItem(Lnet/minecraft/item/ItemStack;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;intermediary method_55765Lnet/minecraft/class_4970;method_55765(Lnet/minecraft/class_1799;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;official aLebp;a(Ldak;Lebq;Ldkj;Liw;Lcsi;Lbvb;Lffy;)Lbvc;
-
onUse
protected ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) - Overrides:
onUsein classAbstractBlock- Mappings:
Namespace Name Mixin selector named onUseLnet/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/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;intermediary method_55766Lnet/minecraft/class_4970;method_55766(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;official aLebp;a(Lebq;Ldkj;Liw;Lcsi;Lffy;)Lbvc;
-
isChargeItem
- Mappings:
Namespace Name Mixin selector named isChargeItemLnet/minecraft/block/RespawnAnchorBlock;isChargeItem(Lnet/minecraft/item/ItemStack;)Zintermediary method_29289Lnet/minecraft/class_4969;method_29289(Lnet/minecraft/class_1799;)Zofficial aLdud;a(Ldak;)Z
-
canCharge
- Mappings:
Namespace Name Mixin selector named canChargeLnet/minecraft/block/RespawnAnchorBlock;canCharge(Lnet/minecraft/block/BlockState;)Zintermediary method_29290Lnet/minecraft/class_4969;method_29290(Lnet/minecraft/class_2680;)Zofficial oLdud;o(Lebq;)Z
-
hasStillWater
- Mappings:
Namespace Name Mixin selector named hasStillWaterLnet/minecraft/block/RespawnAnchorBlock;hasStillWater(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/World;)Zintermediary method_29560Lnet/minecraft/class_4969;method_29560(Lnet/minecraft/class_2338;Lnet/minecraft/class_1937;)Zofficial aLdud;a(Liw;Ldkj;)Z
-
explode
- Mappings:
Namespace Name Mixin selector named explodeLnet/minecraft/block/RespawnAnchorBlock;explode(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_29561Lnet/minecraft/class_4969;method_29561(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vofficial dLdud;d(Lebq;Ldkj;Liw;)V
-
isNether
- Mappings:
Namespace Name Mixin selector named isNetherLnet/minecraft/block/RespawnAnchorBlock;isNether(Lnet/minecraft/world/World;)Zintermediary method_27353Lnet/minecraft/class_4969;method_27353(Lnet/minecraft/class_1937;)Zofficial aLdud;a(Ldkj;)Z
-
charge
public static void charge(@Nullable @Nullable Entity charger, World world, BlockPos pos, BlockState state) - Mappings:
Namespace Name Mixin selector named chargeLnet/minecraft/block/RespawnAnchorBlock;charge(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_26382Lnet/minecraft/class_4969;method_26382(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLdud;a(Lbxe;Ldkj;Liw;Lebq;)V
-
randomDisplayTick
Called 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 classBlock- Mappings:
Namespace Name Mixin selector named randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Vintermediary method_9496Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial aLdno;a(Lebq;Ldkj;Liw;Lbai;)V
-
appendProperties
Appends 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 classBlock- Mappings:
Namespace Name Mixin selector named appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vofficial aLdno;a(Lebr$a;)V
-
hasComparatorOutput
Returns whether the block can have a comparator output.This does not check the current comparator output of the block. Use
getComparatorOutput(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos)in that case.- Overrides:
hasComparatorOutputin classAbstractBlock- Returns:
- whether the block can have a comparator output
- See Also:
- Mappings:
Namespace Name Mixin selector named hasComparatorOutputLnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Zintermediary method_9498Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Zofficial c_Lebp;c_(Lebq;)Z
-
getLightLevel
- Mappings:
Namespace Name Mixin selector named getLightLevelLnet/minecraft/block/RespawnAnchorBlock;getLightLevel(Lnet/minecraft/block/BlockState;I)Iintermediary method_26157Lnet/minecraft/class_4969;method_26157(Lnet/minecraft/class_2680;I)Iofficial aLdud;a(Lebq;I)I
-
getComparatorOutput
Returns the comparator output of the block, from0to15.When overriding this,
hasComparatorOutput(net.minecraft.block.BlockState)must also be overridden.- Overrides:
getComparatorOutputin classAbstractBlock- Returns:
- the comparator output of the block, from
0to15 - See Also:
- Mappings:
Namespace Name Mixin selector named getComparatorOutputLnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Iintermediary method_9572Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Iofficial aLebp;a(Lebq;Ldkj;Liw;)I
-
findRespawnPosition
public static Optional<Vec3d> findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos) - Mappings:
Namespace Name Mixin selector named findRespawnPositionLnet/minecraft/block/RespawnAnchorBlock;findRespawnPosition(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;intermediary method_26156Lnet/minecraft/class_4969;method_26156(Lnet/minecraft/class_1299;Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;)Ljava/util/Optional;official aLdud;a(Lbxn;Ldjr;Liw;)Ljava/util/Optional;
-
findRespawnPosition
private static Optional<Vec3d> findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) - Mappings:
Namespace Name Mixin selector named findRespawnPositionLnet/minecraft/block/RespawnAnchorBlock;findRespawnPosition(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;Z)Ljava/util/Optional;intermediary method_30842Lnet/minecraft/class_4969;method_30842(Lnet/minecraft/class_1299;Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;Z)Ljava/util/Optional;official aLdud;a(Lbxn;Ldjr;Liw;Z)Ljava/util/Optional;
-