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
- Mappings:
Namespace Name official couintermediary net/minecraft/class_4969named net/minecraft/block/RespawnAnchorBlock
-
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 TypeFieldDescriptionstatic final IntPropertystatic final intstatic final intprivate static final ImmutableList<Vec3i>private static final ImmutableList<Vec3i>Fields 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 booleancanCharge(BlockState state) booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type) static voidcharge(World world, BlockPos pos, BlockState state) private voidexplode(BlockState state, World world, BlockPos explodedPos) findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos) findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) intgetComparatorOutput(BlockState state, World world, BlockPos pos) static intgetLightLevel(BlockState state, int maxLevel) booleanhasComparatorOutput(BlockState state) 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) 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, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTick
-
Field Details
-
NO_CHARGES
public static final int NO_CHARGES- See Also:
- Mappings:
Namespace Name Mixin selector official aLcou;a:Iintermediary field_31231Lnet/minecraft/class_4969;field_31231:Inamed NO_CHARGESLnet/minecraft/block/RespawnAnchorBlock;NO_CHARGES:I
-
MAX_CHARGES
public static final int MAX_CHARGES- See Also:
- Mappings:
Namespace Name Mixin selector official bLcou;b:Iintermediary field_31232Lnet/minecraft/class_4969;field_31232:Inamed MAX_CHARGESLnet/minecraft/block/RespawnAnchorBlock;MAX_CHARGES:I
-
CHARGES
- Mappings:
Namespace Name Mixin selector official cLcou;c:Lcvr;intermediary field_23153Lnet/minecraft/class_4969;field_23153:Lnet/minecraft/class_2758;named CHARGESLnet/minecraft/block/RespawnAnchorBlock;CHARGES:Lnet/minecraft/state/property/IntProperty;
-
VALID_HORIZONTAL_SPAWN_OFFSETS
- Mappings:
Namespace Name Mixin selector official dLcou;d:Lcom/google/common/collect/ImmutableList;intermediary field_26442Lnet/minecraft/class_4969;field_26442:Lcom/google/common/collect/ImmutableList;named VALID_HORIZONTAL_SPAWN_OFFSETSLnet/minecraft/block/RespawnAnchorBlock;VALID_HORIZONTAL_SPAWN_OFFSETS:Lcom/google/common/collect/ImmutableList;
-
VALID_SPAWN_OFFSETS
- Mappings:
Namespace Name Mixin selector official eLcou;e:Lcom/google/common/collect/ImmutableList;intermediary field_26443Lnet/minecraft/class_4969;field_26443:Lcom/google/common/collect/ImmutableList;named VALID_SPAWN_OFFSETSLnet/minecraft/block/RespawnAnchorBlock;VALID_SPAWN_OFFSETS:Lcom/google/common/collect/ImmutableList;
-
-
Constructor Details
-
RespawnAnchorBlock
- 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
-
onUse
public 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 classAbstractBlock- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcga;Lgt;Lbtf;Lazl;Ldvp;)Lazm;intermediary method_9534Lnet/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 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/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
-
isChargeItem
- Mappings:
Namespace Name Mixin selector official aLcou;a(Lcaa;)Zintermediary method_29289Lnet/minecraft/class_4969;method_29289(Lnet/minecraft/class_1799;)Znamed isChargeItemLnet/minecraft/block/RespawnAnchorBlock;isChargeItem(Lnet/minecraft/item/ItemStack;)Z
-
canCharge
- Mappings:
Namespace Name Mixin selector official hLcou;h(Lcur;)Zintermediary method_29290Lnet/minecraft/class_4969;method_29290(Lnet/minecraft/class_2680;)Znamed canChargeLnet/minecraft/block/RespawnAnchorBlock;canCharge(Lnet/minecraft/block/BlockState;)Z
-
hasStillWater
- Mappings:
Namespace Name Mixin selector official aLcou;a(Lgt;Lcga;)Zintermediary method_29560Lnet/minecraft/class_4969;method_29560(Lnet/minecraft/class_2338;Lnet/minecraft/class_1937;)Znamed hasStillWaterLnet/minecraft/block/RespawnAnchorBlock;hasStillWater(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/World;)Z
-
explode
- Mappings:
Namespace Name Mixin selector official dLcou;d(Lcur;Lcga;Lgt;)Vintermediary method_29561Lnet/minecraft/class_4969;method_29561(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed explodeLnet/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 aLcou;a(Lcga;)Zintermediary method_27353Lnet/minecraft/class_4969;method_27353(Lnet/minecraft/class_1937;)Znamed isNetherLnet/minecraft/block/RespawnAnchorBlock;isNether(Lnet/minecraft/world/World;)Z
-
charge
- Mappings:
Namespace Name Mixin selector official aLcou;a(Lcga;Lgt;Lcur;)Vintermediary method_26382Lnet/minecraft/class_4969;method_26382(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed chargeLnet/minecraft/block/RespawnAnchorBlock;charge(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
randomDisplayTick
- Overrides:
randomDisplayTickin classBlock- Mappings:
Namespace Name Mixin selector official aLciw;a(Lcur;Lcga;Lgt;Lalu;)Vintermediary method_9496Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vnamed randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
-
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
-
hasComparatorOutput
- Overrides:
hasComparatorOutputin classAbstractBlock- Mappings:
Namespace Name Mixin selector official d_Lcuq;d_(Lcur;)Zintermediary method_9498Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Znamed hasComparatorOutputLnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
-
getLightLevel
- Mappings:
Namespace Name Mixin selector official aLcou;a(Lcur;I)Iintermediary method_26157Lnet/minecraft/class_4969;method_26157(Lnet/minecraft/class_2680;I)Inamed getLightLevelLnet/minecraft/block/RespawnAnchorBlock;getLightLevel(Lnet/minecraft/block/BlockState;I)I
-
getComparatorOutput
- Overrides:
getComparatorOutputin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcga;Lgt;)Iintermediary method_9572Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Inamed getComparatorOutputLnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
findRespawnPosition
public static Optional<Vec3d> findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos) - Mappings:
Namespace Name Mixin selector official aLcou;a(Lbau;Lcfk;Lgt;)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;named findRespawnPositionLnet/minecraft/block/RespawnAnchorBlock;findRespawnPosition(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
-
findRespawnPosition
private static Optional<Vec3d> findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) - Mappings:
Namespace Name Mixin selector official aLcou;a(Lbau;Lcfk;Lgt;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;named findRespawnPositionLnet/minecraft/block/RespawnAnchorBlock;findRespawnPosition(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;Z)Ljava/util/Optional;
-