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
public class RespawnAnchorBlock extends Block
- Mappings:
Namespace Name official cci
intermediary net/minecraft/class_4969
named net/minecraft/block/RespawnAnchorBlock
-
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
Fields Modifier and Type Field Description static IntProperty
CHARGES
private static ImmutableList<Vec3i>
VALID_HORIZONTAL_SPAWN_OFFSETS
private static ImmutableList<Vec3i>
VALID_SPAWN_OFFSETS
Fields inherited from class net.minecraft.block.Block
LOGGER, 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
Constructors Constructor Description RespawnAnchorBlock(AbstractBlock.Settings settings)
-
Method Summary
Modifier and Type Method Description protected void
appendProperties(StateManager.Builder<Block,BlockState> builder)
private static boolean
canCharge(BlockState state)
boolean
canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
static void
charge(World world, BlockPos pos, BlockState state)
private void
explode(BlockState state, World world, BlockPos explodedPos)
static Optional<Vec3d>
findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos)
private static Optional<Vec3d>
findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos, boolean bool)
int
getComparatorOutput(BlockState state, World world, BlockPos pos)
static int
getLightLevel(BlockState state, int maxLevel)
boolean
hasComparatorOutput(BlockState state)
private static boolean
hasStillWater(BlockPos pos, World world)
private static boolean
isChargeItem(ItemStack stack)
static boolean
isNether(World world)
ActionResult
onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player.void
randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, method_33614, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTick
-
Field Details
-
CHARGES
- Mappings:
Namespace Name Mixin selector official a
Lcci;a:Lcit;
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 b
Lcci;b: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 c
Lcci;c: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>
Lchs;<init>(Lchs$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
-
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:
onUse
in classAbstractBlock
- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official a
Lchs;a(Lcht;Lbtv;Lfx;Lbhl;Lapp;Ldiq;)Lapq;
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
Lcci;a(Lbnv;)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
Lcci;h(Lcht;)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
Lcci;a(Lfx;Lbtv;)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
Lcci;d(Lcht;Lbtv;Lfx;)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
Lcci;a(Lbtv;)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
-
charge
- Mappings:
Namespace Name Mixin selector official a
Lcci;a(Lbtv;Lfx;Lcht;)V
intermediary method_26382
Lnet/minecraft/class_4969;method_26382(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named charge
Lnet/minecraft/block/RespawnAnchorBlock;charge(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
randomDisplayTick
@Environment(CLIENT) public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)- Overrides:
randomDisplayTick
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbwu;a(Lcht;Lbtv;Lfx;Ljava/util/Random;)V
intermediary method_9496
Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)V
named randomDisplayTick
Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
appendProperties
- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lbwu;a(Lchu$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
-
hasComparatorOutput
- Overrides:
hasComparatorOutput
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lchs;b(Lcht;)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
Lcci;a(Lcht;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
-
getComparatorOutput
- Overrides:
getComparatorOutput
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lchs;a(Lcht;Lbtv;Lfx;)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
-
findRespawnPosition
public static Optional<Vec3d> findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos)- Mappings:
Namespace Name Mixin selector official a
Lcci;a(Laqz;Lbte;Lfx;)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;
-
findRespawnPosition
private static Optional<Vec3d> findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos, boolean bool)- Mappings:
Namespace Name Mixin selector official a
Lcci;a(Laqz;Lbte;Lfx;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;
-