StairBlock

class StairBlock(baseBlockState: BlockState, properties: BlockBehaviour.Properties) : StairBlock(source)

Normal Fence Gate Block class, inheriting from Vanilla's FenceGateBlock

Constructors

Link copied to clipboard
constructor(baseBlockState: BlockState, properties: BlockBehaviour.Properties)

Inherited functions

Link copied to clipboard
open fun animateTick(state: BlockState, level: Level, pos: BlockPos, random: RandomSource)
Link copied to clipboard
open fun appendHoverText(stack: ItemStack, context: Item.TooltipContext, tooltipComponents: MutableList<Component>, tooltipFlag: TooltipFlag)
Link copied to clipboard
open override fun asItem(): Item
Link copied to clipboard
open fun builtInRegistryHolder(): Holder.Reference<Block>
Link copied to clipboard
open override fun canPlaceLiquid(@Nullable player: Player?, level: BlockGetter, pos: BlockPos, state: BlockState, fluid: Fluid): Boolean
Link copied to clipboard
open override fun codec(): MapCodec<out StairBlock>
Link copied to clipboard
fun defaultBlockState(): BlockState
Link copied to clipboard
Link copied to clipboard
open fun defaultMapColor(): MapColor
Link copied to clipboard
open fun destroy(level: LevelAccessor, pos: BlockPos, state: BlockState)
Link copied to clipboard
open fun dropFromExplosion(explosion: Explosion): Boolean
Link copied to clipboard
open fun fallOn(level: Level, state: BlockState, pos: BlockPos, entity: Entity, fallDistance: Float)
Link copied to clipboard
open fun getAppearance(state: BlockState, renderView: BlockAndTintGetter, pos: BlockPos, side: Direction, @Nullable sourceState: @Nullable BlockState?, @Nullable sourcePos: @Nullable BlockPos?): BlockState
Link copied to clipboard
open fun getCloneItemStack(level: LevelReader, pos: BlockPos, state: BlockState): ItemStack
Link copied to clipboard
Link copied to clipboard
open override fun getExplosionResistance(): Float
Link copied to clipboard
open fun getFriction(): Float
Link copied to clipboard
open fun getJumpFactor(): Float
Link copied to clipboard
fun getLootTable(): ResourceKey<LootTable>
Link copied to clipboard
open fun getName(): MutableComponent
Link copied to clipboard
open override fun getPickupSound(): Optional<SoundEvent>
Link copied to clipboard
open fun getSpeedFactor(): Float
Link copied to clipboard
open fun getStateDefinition(): StateDefinition<Block, BlockState>
Link copied to clipboard
open override fun getStateForPlacement(context: BlockPlaceContext): BlockState?
Link copied to clipboard
open fun handlePrecipitation(state: BlockState, level: Level, pos: BlockPos, precipitation: Biome.Precipitation)
Link copied to clipboard
Link copied to clipboard
open fun isEnabled(enabledFeatures: FeatureFlagSet): Boolean
Link copied to clipboard
open fun isPossibleToRespawnInThis(state: BlockState): Boolean
Link copied to clipboard
open override fun pickupBlock(@Nullable player: Player?, level: LevelAccessor, pos: BlockPos, state: BlockState): ItemStack
Link copied to clipboard
open override fun placeLiquid(level: LevelAccessor, pos: BlockPos, state: BlockState, fluidState: FluidState): Boolean
Link copied to clipboard
open fun playerDestroy(level: Level, player: Player, pos: BlockPos, state: BlockState, @Nullable blockEntity: BlockEntity?, tool: ItemStack)
Link copied to clipboard
open fun playerWillDestroy(level: Level, pos: BlockPos, state: BlockState, player: Player): BlockState
Link copied to clipboard
open fun properties(): BlockBehaviour.Properties
Link copied to clipboard
fun Block.registerBlock(modID: String, name: String): Block

Registers a block to the Minecraft registry with the resource location set to the Mod ID

Link copied to clipboard
fun Block.registerBlockItem(modID: String, name: String): BlockItem

Registers an item to the Minecraft registry with the resource location set to the Mod ID

Link copied to clipboard
fun Block.registerBlockWithItem(modID: String, name: String): Block

Registers a block & item to the Minecraft registry with the resource location set to the Mod ID

Link copied to clipboard
open override fun requiredFeatures(): FeatureFlagSet
Link copied to clipboard
open fun setPlacedBy(level: Level, pos: BlockPos, state: BlockState, @Nullable placer: LivingEntity?, stack: ItemStack)
Link copied to clipboard
open fun stepOn(level: Level, pos: BlockPos, state: BlockState, entity: Entity)
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun updateEntityAfterFallOn(level: BlockGetter, entity: Entity)
Link copied to clipboard
open fun wasExploded(level: Level, pos: BlockPos, explosion: Explosion)
Link copied to clipboard
fun withPropertiesOf(state: BlockState): BlockState