Class TorchBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature
Direct Known Subclasses:
WallTorchBlock

public class TorchBlock extends AbstractTorchBlock
Mappings:
Namespace Name
named net/minecraft/block/TorchBlock
intermediary net/minecraft/class_2527
official doj
  • Field Details

    • PARTICLE_TYPE_CODEC

      protected static final com.mojang.serialization.MapCodec<SimpleParticleType> PARTICLE_TYPE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PARTICLE_TYPE_CODEC Lnet/minecraft/block/TorchBlock;PARTICLE_TYPE_CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46475 Lnet/minecraft/class_2527;field_46475:Lcom/mojang/serialization/MapCodec;
      official c Ldoj;c:Lcom/mojang/serialization/MapCodec;
    • CODEC

      public static final com.mojang.serialization.MapCodec<TorchBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/TorchBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46476 Lnet/minecraft/class_2527;field_46476:Lcom/mojang/serialization/MapCodec;
      official d Ldoj;d:Lcom/mojang/serialization/MapCodec;
    • particle

      protected final SimpleParticleType particle
      Mappings:
      Namespace Name Mixin selector
      named particle Lnet/minecraft/block/TorchBlock;particle:Lnet/minecraft/particle/SimpleParticleType;
      intermediary field_22155 Lnet/minecraft/class_2527;field_22155:Lnet/minecraft/class_2400;
      official e Ldoj;e:Llq;
  • Constructor Details

    • TorchBlock

      protected TorchBlock(SimpleParticleType particle, AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/TorchBlock;<init>(Lnet/minecraft/particle/SimpleParticleType;Lnet/minecraft/block/AbstractBlock$Settings;)V
      intermediary <init> Lnet/minecraft/class_2527;<init>(Lnet/minecraft/class_2400;Lnet/minecraft/class_4970$class_2251;)V
      official <init> Ldoj;<init>(Llq;Ldtb$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<? extends TorchBlock> getCodec()
      Specified by:
      getCodec in class AbstractTorchBlock
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      official a Ldtb;a()Lcom/mojang/serialization/MapCodec;
    • randomDisplayTick

      public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
      Called randomly on the client. Blocks may override this to spawn particles. Unlike AbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random) this is not affected by a game rule.
      Overrides:
      randomDisplayTick in class Block
      Mappings:
      Namespace Name Mixin selector
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
      intermediary method_9496 Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
      official a Ldfy;a(Ldtc;Ldcw;Ljd;Layw;)V