net.minecraft.block

public class RespawnAnchorBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.RespawnAnchorBlock
net.minecraft.world.level.block.RespawnAnchorBlock
net.minecraft.class_4969
net.minecraft.block.RespawnAnchorBlock

Field summary

Modifier and TypeField
public static final int
MIN_CHARGES
MIN_CHARGES
field_31231
NO_CHARGES
public static final int
MAX_CHARGES
MAX_CHARGES
field_31232
MAX_CHARGES
public static final IntProperty
CHARGE
CHARGE
field_23153
CHARGES
private static final com.google.common.collect.ImmutableList<Vec3i>
RESPAWN_HORIZONTAL_OFFSETS
RESPAWN_HORIZONTAL_OFFSETS
field_26442
VALID_HORIZONTAL_SPAWN_OFFSETS
private static final com.google.common.collect.ImmutableList<Vec3i>
RESPAWN_OFFSETS
RESPAWN_OFFSETS
field_26443
VALID_SPAWN_OFFSETS

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
protected ActionResult
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
method_55765(class_1799 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3, class_1657 arg4, class_1268 arg5, class_3965 arg6)
onUseWithItem(ItemStack arg0, BlockState arg1, World arg2, BlockPos arg3, PlayerEntity arg4, Hand arg5, BlockHitResult arg6)
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
private static boolean
isRespawnFuel(ItemStack itemInHand)
isRespawnFuel(ItemStack itemInHand)
method_29289(class_1799 arg0)
isChargeItem(ItemStack stack)
private static boolean
canBeCharged(BlockState state)
canBeCharged(BlockState state)
method_29290(class_2680 arg0)
canCharge(BlockState state)
private static boolean
isWaterThatWouldFlow(BlockPos pos, Level level)
isWaterThatWouldFlow(BlockPos pos, Level level)
method_29560(class_2338 arg0, class_1937 arg1)
hasStillWater(BlockPos pos, World world)
private void
explode(BlockState state, ServerLevel level, BlockPos pos)
explode(BlockState state, ServerLevel level, BlockPos pos)
method_29561(class_2680 arg0, class_3218 arg1, class_2338 arg2)
explode(BlockState state, ServerWorld world, BlockPos explodedPos)
public static boolean
canSetSpawn(ServerLevel level, BlockPos pos)
canSetSpawn(ServerLevel level, BlockPos pos)
method_27353(class_3218 arg0, class_2338 arg1)
isUsable(ServerWorld world, BlockPos pos)
public static void
charge(Entity sourceEntity, Level level, BlockPos pos, BlockState state)
charge(Entity sourceEntity, Level level, BlockPos pos, BlockState state)
method_26382(class_1297 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3)
charge(Entity charger, World world, BlockPos pos, BlockState state)
public void
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected boolean
hasAnalogOutputSignal(BlockState state)
hasAnalogOutputSignal(BlockState state)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
public static int
getScaledChargeLevel(BlockState state, int maximum)
getScaledChargeLevel(BlockState state, int maximum)
method_26157(class_2680 arg0, int arg1)
getLightLevel(BlockState state, int maxLevel)
protected int
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2, Direction arg3)
public static Optional<Vec3d>
findStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos)
findStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos)
method_26156(class_1299<?> arg0, class_1941 arg1, class_2338 arg2)
findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos)
private static Optional<Vec3d>
findStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos, boolean checkDangerous)
findStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos, boolean checkDangerous)
method_30842(class_1299<?> arg0, class_1941 arg1, class_2338 arg2, boolean arg3)
findRespawnPosition(EntityType<?> entity, CollisionView world, BlockPos pos, boolean ignoreInvalidPos)
protected boolean
isPathfindable(BlockState state, PathComputationType type)
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)