类 SpiderEggCocoonBlock

java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
pers.saikel0rado1iu.spontaneousreplace.cobwebbed.block.SpiderEggCocoonBlock
所有已实现的接口:
net.fabricmc.fabric.api.block.v1.FabricBlock, net.minecraft.block.BlockEntityProvider, net.minecraft.item.ItemConvertible, net.minecraft.resource.featuretoggle.ToggleableFeature

public class SpiderEggCocoonBlock extends net.minecraft.block.BlockWithEntity

蜘蛛卵茧方块

蜘蛛卵茧方块,一种特殊的陷阱类方块,在玩家靠近时会生成三只幼株
从以下版本开始:
1.0.0
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraft.block.Block

    net.minecraft.block.Block.NeighborGroup

    从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock

    net.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.ContextPredicate, net.minecraft.block.AbstractBlock.Offsetter, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Settings, net.minecraft.block.AbstractBlock.TypedContextPredicate<A extends Object>
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final com.mojang.serialization.MapCodec<SpiderEggCocoonBlock>
     
    static final net.minecraft.block.AbstractBlock.Settings
     
    static final float
     

    从类继承的字段 net.minecraft.block.Block

    field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManager

    从类继承的字段 net.minecraft.block.AbstractBlock

    collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier

    从接口继承的字段 net.minecraft.resource.featuretoggle.ToggleableFeature

    FEATURE_ENABLED_REGISTRY_KEYS
  • 构造器概要

    构造器
    构造器
    说明
    SpiderEggCocoonBlock(net.minecraft.block.AbstractBlock.Settings settings)
    构建蜘蛛卵茧
  • 方法概要

    修饰符和类型
    方法
    说明
    protected void
    appendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
    方块追加属性
    protected static boolean
    canPlaceAtWithDirection(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.Direction direction)
    能放置方向
    net.minecraft.block.entity.BlockEntity
    createBlockEntity(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
    创建蜘蛛卵茧实体
    protected com.mojang.serialization.MapCodec<? extends net.minecraft.block.BlockWithEntity>
     
    protected static net.minecraft.util.math.Direction
    getDirectionToPlaceAt(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.Direction direction)
    获取放置方向
    net.minecraft.block.BlockState
    getPlacementState(net.minecraft.item.ItemPlacementContext ctx)
    获取放置状态
    net.minecraft.block.BlockRenderType
    getRenderType(net.minecraft.block.BlockState state)
    获取渲染类型
    net.minecraft.block.BlockState
    getStateForNeighborUpdate(net.minecraft.block.BlockState state, net.minecraft.util.math.Direction direction, net.minecraft.block.BlockState neighborState, net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos neighborPos)
    如果蜘蛛卵茧的附着方块被破坏则破坏蜘蛛卵茧
    <T extends net.minecraft.block.entity.BlockEntity>
    net.minecraft.block.entity.BlockEntityTicker<T>
    getTicker(net.minecraft.world.World world, net.minecraft.block.BlockState state, net.minecraft.block.entity.BlockEntityType<T> type)
    设置每 Tick 运行函数
    void
    onBlockBreakStart(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player)
    方块一旦被破坏立刻生成蜘蛛

    从类继承的方法 net.minecraft.block.BlockWithEntity

    createScreenHandlerFactory, onSyncedBlockEvent, validateTicker

    从类继承的方法 net.minecraft.block.Block

    afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString

    从类继承的方法 net.minecraft.block.AbstractBlock

    calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getRaycastShape, getRenderingSeed, getRequiredFeatures, getSettings, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onUse, prepare, randomTick, rotate, scheduledTick

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    从接口继承的方法 net.minecraft.block.BlockEntityProvider

    getGameEventListener

    从接口继承的方法 net.fabricmc.fabric.api.block.v1.FabricBlock

    getAppearance

    从接口继承的方法 net.minecraft.resource.featuretoggle.ToggleableFeature

    isEnabled
  • 字段详细资料

    • STRENGTH

      public static final float STRENGTH
      另请参阅:
    • SETTINGS

      public static final net.minecraft.block.AbstractBlock.Settings SETTINGS
    • CODEC

      public static final com.mojang.serialization.MapCodec<SpiderEggCocoonBlock> CODEC
  • 构造器详细资料

    • SpiderEggCocoonBlock

      public SpiderEggCocoonBlock(net.minecraft.block.AbstractBlock.Settings settings)

      构建蜘蛛卵茧

      垂直方向:上

      参数:
      settings - 设置
  • 方法详细资料

    • getDirectionToPlaceAt

      protected static net.minecraft.util.math.Direction getDirectionToPlaceAt(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.Direction direction)
      获取放置方向
    • canPlaceAtWithDirection

      protected static boolean canPlaceAtWithDirection(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.Direction direction)
      能放置方向
    • getCodec

      protected com.mojang.serialization.MapCodec<? extends net.minecraft.block.BlockWithEntity> getCodec()
      指定者:
      getCodec 在类中 net.minecraft.block.BlockWithEntity
    • createBlockEntity

      public net.minecraft.block.entity.BlockEntity createBlockEntity(net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
      创建蜘蛛卵茧实体
    • onBlockBreakStart

      public void onBlockBreakStart(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player)
      方块一旦被破坏立刻生成蜘蛛
      覆盖:
      onBlockBreakStart 在类中 net.minecraft.block.AbstractBlock
    • appendProperties

      protected void appendProperties(net.minecraft.state.StateManager.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
      方块追加属性
      覆盖:
      appendProperties 在类中 net.minecraft.block.Block
      参数:
      builder - 构建器
    • getRenderType

      public net.minecraft.block.BlockRenderType getRenderType(net.minecraft.block.BlockState state)
      获取渲染类型
      覆盖:
      getRenderType 在类中 net.minecraft.block.BlockWithEntity
    • getPlacementState

      public net.minecraft.block.BlockState getPlacementState(net.minecraft.item.ItemPlacementContext ctx)
      获取放置状态
      覆盖:
      getPlacementState 在类中 net.minecraft.block.Block
    • getStateForNeighborUpdate

      public net.minecraft.block.BlockState getStateForNeighborUpdate(net.minecraft.block.BlockState state, net.minecraft.util.math.Direction direction, net.minecraft.block.BlockState neighborState, net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos neighborPos)
      如果蜘蛛卵茧的附着方块被破坏则破坏蜘蛛卵茧
      覆盖:
      getStateForNeighborUpdate 在类中 net.minecraft.block.AbstractBlock
    • getTicker

      public <T extends net.minecraft.block.entity.BlockEntity> net.minecraft.block.entity.BlockEntityTicker<T> getTicker(net.minecraft.world.World world, net.minecraft.block.BlockState state, net.minecraft.block.entity.BlockEntityType<T> type)
      设置每 Tick 运行函数