public class BlockPortal extends Block
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockPortal.Size |
Block.EnumOffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
static EnumProperty<EnumFacing.Axis> |
AXIS |
protected static VoxelShape |
X_AABB |
protected static VoxelShape |
Z_AABB |
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockResistance, blocksMovement, capturedDrops, captureDrops, harvesters, lightValue, LOGGER, material, needsRandomTick, RANDOM, soundType, stateContainerdelegate| Constructor and Description |
|---|
BlockPortal(Block.Properties builder) |
addInformation, allowsMovement, asItem, canDropFromExplosion, canEntitySpawn, canProvidePower, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, doesSideFillSquare, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getDefaultState, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItemDropped, getItemsToDropCount, getLightValue, getMapColor, getMaterial, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSilkTouchDrop, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTickRandomly, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, isAir, isBlockNormalCube, isCollidable, isCollidable, isDirt, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isTopSolid, isValidPosition, isVariableOpacity, makeCuboidShape, mirror, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onReplaced, propagatesSkylightDown, randomTick, registerBlocks, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateDiagonalNeighbors, updateNeighbors, useNeighborBrightnessgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canRenderInLayer, createTileEntity, doesSideBlockChestOpening, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getDrops, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isNormalCube, isReplaceableOreGen, isStickyBlock, isToolEffective, isTopSolid, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPowerpublic static final EnumProperty<EnumFacing.Axis> AXIS
protected static final VoxelShape X_AABB
protected static final VoxelShape Z_AABB
public BlockPortal(Block.Properties builder)
public VoxelShape getShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
public void tick(IBlockState state, World worldIn, BlockPos pos, java.util.Random random)
public boolean isFullCube(IBlockState state)
isFullCube in class Block@Nullable public BlockPortal.Size isPortal(IWorld p_201816_1_, BlockPos p_201816_2_)
public IBlockState updatePostPlacement(IBlockState stateIn, EnumFacing facing, IBlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement in class Blockpublic int quantityDropped(IBlockState state, java.util.Random random)
quantityDropped in class Blockpublic BlockRenderLayer getRenderLayer()
getRenderLayer in class Blockpublic void onEntityCollision(IBlockState state, World worldIn, BlockPos pos, Entity entityIn)
onEntityCollision in class Blockpublic void animateTick(IBlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
animateTick in class Blockpublic ItemStack getItem(IBlockReader worldIn, BlockPos pos, IBlockState state)
public IBlockState rotate(IBlockState state, Rotation rot)
protected void fillStateContainer(StateContainer.Builder<Block,IBlockState> builder)
fillStateContainer in class Blockpublic BlockPattern.PatternHelper createPatternHelper(IWorld worldIn, BlockPos p_181089_2_)
public BlockFaceShape getBlockFaceShape(IBlockReader worldIn, IBlockState state, BlockPos pos, EnumFacing face)
getBlockFaceShape in class Block