类 TntBlock

  • 所有已实现的接口:
    ItemConvertible

    public class TntBlock
    extends Block
    Mappings:
    Namespace Name
    official cgb
    intermediary net/minecraft/class_2530
    named net/minecraft/block/TntBlock
    • 字段详细资料

      • UNSTABLE

        public static final BooleanProperty UNSTABLE
        Mappings:
        Namespace Name Mixin selector
        official a Lcgb;a:Lcki;
        intermediary field_11621 Lnet/minecraft/class_2530;field_11621:Lnet/minecraft/class_2746;
        named UNSTABLE Lnet/minecraft/block/TntBlock;UNSTABLE:Lnet/minecraft/state/property/BooleanProperty;
    • 构造器详细资料

      • TntBlock

        public TntBlock​(AbstractBlock.Settings settings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcjq;<init>(Lcjq$c;)V
        intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
        named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
    • 方法详细资料

      • onBlockAdded

        public void onBlockAdded​(BlockState state,
                                 World world,
                                 BlockPos pos,
                                 BlockState oldState,
                                 boolean notify)
        覆盖:
        onBlockAdded 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official b Lcjq;b(Lcjr;Lbvr;Lgb;Lcjr;Z)V
        intermediary method_9615 Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
        named onBlockAdded Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
      • neighborUpdate

        public void neighborUpdate​(BlockState state,
                                   World world,
                                   BlockPos pos,
                                   Block block,
                                   BlockPos fromPos,
                                   boolean notify)
        覆盖:
        neighborUpdate 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;Lbyq;Lgb;Z)V
        intermediary method_9612 Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)V
        named neighborUpdate Lnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
      • onBreak

        public void onBreak​(World world,
                            BlockPos pos,
                            BlockState state,
                            PlayerEntity player)
        覆盖:
        onBreak 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbvr;Lgb;Lcjr;Lbjf;)V
        intermediary method_9576 Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
        named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
      • onDestroyedByExplosion

        public void onDestroyedByExplosion​(World world,
                                           BlockPos pos,
                                           Explosion explosion)
        Called when this block is destroyed by an explosion.
        覆盖:
        onDestroyedByExplosion 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbvr;Lgb;Lbvj;)V
        intermediary method_9586 Lnet/minecraft/class_2248;method_9586(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1927;)V
        named onDestroyedByExplosion Lnet/minecraft/block/Block;onDestroyedByExplosion(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/explosion/Explosion;)V
      • primeTnt

        public static void primeTnt​(World world,
                                    BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lcgb;a(Lbvr;Lgb;)V
        intermediary method_10738 Lnet/minecraft/class_2530;method_10738(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
        named primeTnt Lnet/minecraft/block/TntBlock;primeTnt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      • primeTnt

        private static void primeTnt​(World world,
                                     BlockPos pos,
                                     @Nullable
                                     @Nullable LivingEntity igniter)
        Mappings:
        Namespace Name Mixin selector
        official a Lcgb;a(Lbvr;Lgb;Lasy;)V
        intermediary method_10737 Lnet/minecraft/class_2530;method_10737(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)V
        named primeTnt Lnet/minecraft/block/TntBlock;primeTnt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)V
      • onUse

        public ActionResult onUse​(BlockState state,
                                  World world,
                                  BlockPos pos,
                                  PlayerEntity player,
                                  Hand hand,
                                  BlockHitResult hit)
        Called when this block is used by a player. This, by default, is bound to using the right mouse button.

        This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using world.isClient().

        If the action result is successful on a logical client, then the action will be sent to the logical server for processing.

        覆盖:
        onUse 在类中 AbstractBlock
        返回:
        an action result that specifies if using the block was successful.
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;Lbjf;Larf;Ldlw;)Larg;
        intermediary method_9534 Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
        named onUse Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
      • onProjectileHit

        public void onProjectileHit​(World world,
                                    BlockState state,
                                    BlockHitResult hit,
                                    ProjectileEntity projectile)
        覆盖:
        onProjectileHit 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lbvr;Lcjr;Ldlw;Lbjv;)V
        intermediary method_19286 Lnet/minecraft/class_4970;method_19286(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_3965;Lnet/minecraft/class_1676;)V
        named onProjectileHit Lnet/minecraft/block/AbstractBlock;onProjectileHit(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/hit/BlockHitResult;Lnet/minecraft/entity/projectile/ProjectileEntity;)V
      • shouldDropItemsOnExplosion

        public boolean shouldDropItemsOnExplosion​(Explosion explosion)
        覆盖:
        shouldDropItemsOnExplosion 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbvj;)Z
        intermediary method_9533 Lnet/minecraft/class_2248;method_9533(Lnet/minecraft/class_1927;)Z
        named shouldDropItemsOnExplosion Lnet/minecraft/block/Block;shouldDropItemsOnExplosion(Lnet/minecraft/world/explosion/Explosion;)Z
      • appendProperties

        protected void appendProperties​(StateManager.Builder<Block,​BlockState> builder)
        覆盖:
        appendProperties 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lcjs$a;)V
        intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
        named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V