java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock
pers.saikel0rado1iu.spontaneousreplace.terriforest.block.TreacherousSacBlock
所有已实现的接口:
net.fabricmc.fabric.api.block.v1.FabricBlock, net.minecraft.item.ItemConvertible, net.minecraft.resource.featuretoggle.ToggleableFeature

public class TreacherousSacBlock extends pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock

诡谲囊

一种特殊的植株方块,在受到强烈击打时会爆炸
从以下版本开始:
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>
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final com.mojang.serialization.MapCodec<TreacherousSacBlock>
     

    从类继承的字段 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, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier

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

    FEATURE_ENABLED_REGISTRY_KEYS
  • 构造器概要

    构造器
    构造器
    说明
    TreacherousSacBlock(net.minecraft.block.AbstractBlock.Settings settings)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected pers.saikel0rado1iu.silk.api.spore.TntLikeEntity
    createEntity(net.minecraft.world.World world, double x, double y, double z, Optional<net.minecraft.entity.LivingEntity> igniter)
     
    protected com.mojang.serialization.MapCodec<? extends pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock>
     
    void
    neighborUpdate(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.Block sourceBlock, net.minecraft.util.math.BlockPos sourcePos, boolean notify)
     
    void
    onBlockAdded(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState oldState, boolean notify)
     
    void
    onLandedUpon(net.minecraft.world.World world, net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.Entity entity, float fallDistance)
    如果在方块上跳跃则有概率会爆炸
    void
    onProjectileHit(net.minecraft.world.World world, net.minecraft.block.BlockState state, net.minecraft.util.hit.BlockHitResult hit, net.minecraft.entity.projectile.ProjectileEntity projectile)
    如果被弹射物击中
    protected net.minecraft.util.ItemActionResult
    onUseWithItem(net.minecraft.item.ItemStack stack, net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, net.minecraft.util.hit.BlockHitResult hit)
    如果被斧右键使用则会爆炸
    protected void
    primeTnt(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, Optional<net.minecraft.entity.LivingEntity> igniter)
     
    void
    randomDisplayTick(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.random.Random random)
    随机酸气粒子效果

    从类继承的方法 pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock

    appendProperties, onBreak, onBreakSuper, onDestroyedByExplosion, onUseWithItemSuper, primeTnt, shouldDropItemsOnExplosion

    从类继承的方法 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, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBroken, onEntityLand, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, sideCoversSmallSquare, spawnBreakParticles, toString

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

    calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, mirror, onBlockBreakStart, onEntityCollision, onExploded, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick

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

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

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

    getAppearance

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

    isEnabled
  • 字段详细资料

  • 构造器详细资料

    • TreacherousSacBlock

      public TreacherousSacBlock(net.minecraft.block.AbstractBlock.Settings settings)
  • 方法详细资料

    • primeTnt

      protected void primeTnt(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, Optional<net.minecraft.entity.LivingEntity> igniter)
      覆盖:
      primeTnt 在类中 pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock
    • randomDisplayTick

      public void randomDisplayTick(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.random.Random random)
      随机酸气粒子效果
      覆盖:
      randomDisplayTick 在类中 net.minecraft.block.Block
    • onLandedUpon

      public void onLandedUpon(net.minecraft.world.World world, net.minecraft.block.BlockState state, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.Entity entity, float fallDistance)
      如果在方块上跳跃则有概率会爆炸
      覆盖:
      onLandedUpon 在类中 net.minecraft.block.Block
    • onUseWithItem

      protected net.minecraft.util.ItemActionResult onUseWithItem(net.minecraft.item.ItemStack stack, net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, net.minecraft.util.hit.BlockHitResult hit)
      如果被斧右键使用则会爆炸
      覆盖:
      onUseWithItem 在类中 pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock
    • onProjectileHit

      public void onProjectileHit(net.minecraft.world.World world, net.minecraft.block.BlockState state, net.minecraft.util.hit.BlockHitResult hit, net.minecraft.entity.projectile.ProjectileEntity projectile)
      如果被弹射物击中
      覆盖:
      onProjectileHit 在类中 pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock
    • onBlockAdded

      public void onBlockAdded(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState oldState, boolean notify)
      覆盖:
      onBlockAdded 在类中 pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock
    • neighborUpdate

      public void neighborUpdate(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.Block sourceBlock, net.minecraft.util.math.BlockPos sourcePos, boolean notify)
      覆盖:
      neighborUpdate 在类中 pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock
    • createEntity

      protected pers.saikel0rado1iu.silk.api.spore.TntLikeEntity createEntity(net.minecraft.world.World world, double x, double y, double z, Optional<net.minecraft.entity.LivingEntity> igniter)
      指定者:
      createEntity 在类中 pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock
    • getCodec

      protected com.mojang.serialization.MapCodec<? extends pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock> getCodec()
      指定者:
      getCodec 在类中 pers.saikel0rado1iu.silk.api.magiccube.TntLikeBlock