Package net.minecraft.block
Class RespawnAnchorBlock
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Block>
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.RespawnAnchorBlock
-
- All Implemented Interfaces:
IItemProvider,IForgeBlock,IForgeRegistryEntry<Block>
public class RespawnAnchorBlock extends Block
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.RenderSideCacheKey
-
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description static IntegerPropertyCHARGEprivate static com.google.common.collect.ImmutableList<Vector3i>RESPAWN_HORIZONTAL_OFFSETSprivate static com.google.common.collect.ImmutableList<Vector3i>RESPAWN_OFFSETS-
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
-
Fields inherited from class net.minecraft.block.AbstractBlock
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description RespawnAnchorBlock(AbstractBlock.Properties p_i241185_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanimateTick(BlockState p_180655_1_, World p_180655_2_, BlockPos p_180655_3_, java.util.Random p_180655_4_)private static booleancanBeCharged(BlockState p_235568_0_)static booleancanSetSpawn(World p_235562_0_)static voidcharge(World p_235564_0_, BlockPos p_235564_1_, BlockState p_235564_2_)protected voidcreateBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)private voidexplode(BlockState p_235567_1_, World p_235567_2_, BlockPos p_235567_3_)static java.util.Optional<Vector3d>findStandUpPosition(EntityType<?> p_235560_0_, ICollisionReader p_235560_1_, BlockPos p_235560_2_)private static java.util.Optional<Vector3d>findStandUpPosition(EntityType<?> p_242678_0_, ICollisionReader p_242678_1_, BlockPos p_242678_2_, boolean p_242678_3_)intgetAnalogOutputSignal(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_)static intgetScaledChargeLevel(BlockState p_235565_0_, int p_235565_1_)booleanhasAnalogOutputSignal(BlockState p_149740_1_)booleanisPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_)private static booleanisRespawnFuel(ItemStack p_235561_0_)private static booleanisWaterThatWouldFlow(BlockPos p_235566_0_, World p_235566_1_)ActionResultTypeuse(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_)-
Methods inherited from class net.minecraft.block.Block
appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
-
Methods inherited from class net.minecraft.block.AbstractBlock
attack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, isAir, isEntityBlock, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, randomTick, rotate, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
-
-
-
-
Field Detail
-
CHARGE
public static final IntegerProperty CHARGE
-
RESPAWN_HORIZONTAL_OFFSETS
private static final com.google.common.collect.ImmutableList<Vector3i> RESPAWN_HORIZONTAL_OFFSETS
-
RESPAWN_OFFSETS
private static final com.google.common.collect.ImmutableList<Vector3i> RESPAWN_OFFSETS
-
-
Constructor Detail
-
RespawnAnchorBlock
public RespawnAnchorBlock(AbstractBlock.Properties p_i241185_1_)
-
-
Method Detail
-
use
public ActionResultType use(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_)
- Overrides:
usein classAbstractBlock
-
isRespawnFuel
private static boolean isRespawnFuel(ItemStack p_235561_0_)
-
canBeCharged
private static boolean canBeCharged(BlockState p_235568_0_)
-
isWaterThatWouldFlow
private static boolean isWaterThatWouldFlow(BlockPos p_235566_0_, World p_235566_1_)
-
explode
private void explode(BlockState p_235567_1_, World p_235567_2_, BlockPos p_235567_3_)
-
canSetSpawn
public static boolean canSetSpawn(World p_235562_0_)
-
charge
public static void charge(World p_235564_0_, BlockPos p_235564_1_, BlockState p_235564_2_)
-
animateTick
public void animateTick(BlockState p_180655_1_, World p_180655_2_, BlockPos p_180655_3_, java.util.Random p_180655_4_)
- Overrides:
animateTickin classBlock
-
createBlockStateDefinition
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
- Overrides:
createBlockStateDefinitionin classBlock
-
hasAnalogOutputSignal
public boolean hasAnalogOutputSignal(BlockState p_149740_1_)
- Overrides:
hasAnalogOutputSignalin classAbstractBlock
-
getScaledChargeLevel
public static int getScaledChargeLevel(BlockState p_235565_0_, int p_235565_1_)
-
getAnalogOutputSignal
public int getAnalogOutputSignal(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_)
- Overrides:
getAnalogOutputSignalin classAbstractBlock
-
findStandUpPosition
public static java.util.Optional<Vector3d> findStandUpPosition(EntityType<?> p_235560_0_, ICollisionReader p_235560_1_, BlockPos p_235560_2_)
-
findStandUpPosition
private static java.util.Optional<Vector3d> findStandUpPosition(EntityType<?> p_242678_0_, ICollisionReader p_242678_1_, BlockPos p_242678_2_, boolean p_242678_3_)
-
isPathfindable
public boolean isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_)
- Overrides:
isPathfindablein classAbstractBlock
-
-