public class RespawnAnchorBlock extends Block
Block.RenderSideCacheKey
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
static IntegerProperty |
CHARGE |
private static com.google.common.collect.ImmutableList<Vector3i> |
RESPAWN_HORIZONTAL_OFFSETS |
private static com.google.common.collect.ImmutableList<Vector3i> |
RESPAWN_OFFSETS |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
RespawnAnchorBlock(AbstractBlock.Properties p_i241185_1_) |
Modifier and Type | Method and Description |
---|---|
void |
animateTick(BlockState p_180655_1_,
World p_180655_2_,
BlockPos p_180655_3_,
java.util.Random p_180655_4_) |
private static boolean |
canBeCharged(BlockState p_235568_0_) |
static boolean |
canSetSpawn(World p_235562_0_) |
static void |
charge(World p_235564_0_,
BlockPos p_235564_1_,
BlockState p_235564_2_) |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
private void |
explode(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_) |
int |
getAnalogOutputSignal(BlockState p_180641_1_,
World p_180641_2_,
BlockPos p_180641_3_) |
static int |
getScaledChargeLevel(BlockState p_235565_0_,
int p_235565_1_) |
boolean |
hasAnalogOutputSignal(BlockState p_149740_1_) |
boolean |
isPathfindable(BlockState p_196266_1_,
IBlockReader p_196266_2_,
BlockPos p_196266_3_,
PathType p_196266_4_) |
private static boolean |
isRespawnFuel(ItemStack p_235561_0_) |
private static boolean |
isWaterThatWouldFlow(BlockPos p_235566_0_,
World p_235566_1_) |
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_) |
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
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
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public static final IntegerProperty CHARGE
private static final com.google.common.collect.ImmutableList<Vector3i> RESPAWN_HORIZONTAL_OFFSETS
private static final com.google.common.collect.ImmutableList<Vector3i> RESPAWN_OFFSETS
public RespawnAnchorBlock(AbstractBlock.Properties p_i241185_1_)
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_)
use
in class AbstractBlock
private static boolean isRespawnFuel(ItemStack p_235561_0_)
private static boolean canBeCharged(BlockState p_235568_0_)
private static boolean isWaterThatWouldFlow(BlockPos p_235566_0_, World p_235566_1_)
private void explode(BlockState p_235567_1_, World p_235567_2_, BlockPos p_235567_3_)
public static boolean canSetSpawn(World p_235562_0_)
public static void charge(World p_235564_0_, BlockPos p_235564_1_, BlockState p_235564_2_)
public void animateTick(BlockState p_180655_1_, World p_180655_2_, BlockPos p_180655_3_, java.util.Random p_180655_4_)
animateTick
in class Block
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block
public boolean hasAnalogOutputSignal(BlockState p_149740_1_)
hasAnalogOutputSignal
in class AbstractBlock
public static int getScaledChargeLevel(BlockState p_235565_0_, int p_235565_1_)
public int getAnalogOutputSignal(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_)
getAnalogOutputSignal
in class AbstractBlock
public 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_)
public boolean isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_)
isPathfindable
in class AbstractBlock