Class AbstractCandleBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature
Direct Known Subclasses:
CandleBlock, CandleCakeBlock

public abstract class AbstractCandleBlock extends Block
Mappings:
Namespace Name
named net/minecraft/block/AbstractCandleBlock
intermediary net/minecraft/class_5540
official dds
  • Field Details

    • field_30987

      public static final int field_30987
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30987 Lnet/minecraft/block/AbstractCandleBlock;field_30987:I
      intermediary field_30987 Lnet/minecraft/class_5540;field_30987:I
      official a Ldds;a:I
    • LIT

      public static final BooleanProperty LIT
      Mappings:
      Namespace Name Mixin selector
      named LIT Lnet/minecraft/block/AbstractCandleBlock;LIT:Lnet/minecraft/state/property/BooleanProperty;
      intermediary field_27083 Lnet/minecraft/class_5540;field_27083:Lnet/minecraft/class_2746;
      official b Ldds;b:Ldsu;
  • Constructor Details

    • AbstractCandleBlock

      protected AbstractCandleBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      official <init> Ldsc;<init>(Ldsc$d;)V
  • Method Details

    • getCodec

      protected abstract com.mojang.serialization.MapCodec<? extends AbstractCandleBlock> getCodec()
      Overrides:
      getCodec in class Block
      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 Ldsc;a()Lcom/mojang/serialization/MapCodec;
    • getParticleOffsets

      protected abstract Iterable<Vec3d> getParticleOffsets(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named getParticleOffsets Lnet/minecraft/block/AbstractCandleBlock;getParticleOffsets(Lnet/minecraft/block/BlockState;)Ljava/lang/Iterable;
      intermediary method_31613 Lnet/minecraft/class_5540;method_31613(Lnet/minecraft/class_2680;)Ljava/lang/Iterable;
      official b Ldds;b(Ldsd;)Ljava/lang/Iterable;
    • isLitCandle

      public static boolean isLitCandle(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named isLitCandle Lnet/minecraft/block/AbstractCandleBlock;isLitCandle(Lnet/minecraft/block/BlockState;)Z
      intermediary method_35245 Lnet/minecraft/class_5540;method_35245(Lnet/minecraft/class_2680;)Z
      official c Ldds;c(Ldsd;)Z
    • onProjectileHit

      protected void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)
      Called when a ProjectileEntity hits a block.

      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.

      Here are some examples:

      Overrides:
      onProjectileHit in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official a Ldsc;a(Ldbz;Ldsd;Levo;Lcnq;)V
    • isNotLit

      protected boolean isNotLit(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named isNotLit Lnet/minecraft/block/AbstractCandleBlock;isNotLit(Lnet/minecraft/block/BlockState;)Z
      intermediary method_35246 Lnet/minecraft/class_5540;method_35246(Lnet/minecraft/class_2680;)Z
      official d Ldds;d(Ldsd;)Z
    • 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 Ldfa;a(Ldsd;Ldbz;Liz;Lazh;)V
    • spawnCandleParticles

      private static void spawnCandleParticles(World world, Vec3d vec3d, Random random)
      Mappings:
      Namespace Name Mixin selector
      named spawnCandleParticles Lnet/minecraft/block/AbstractCandleBlock;spawnCandleParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/random/Random;)V
      intermediary method_31610 Lnet/minecraft/class_5540;method_31610(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_5819;)V
      official a Ldds;a(Ldbz;Levs;Lazh;)V
    • extinguish

      public static void extinguish(@Nullable @Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named extinguish Lnet/minecraft/block/AbstractCandleBlock;extinguish(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_31614 Lnet/minecraft/class_5540;method_31614(Lnet/minecraft/class_1657;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)V
      official a Ldds;a(Lcmy;Ldsd;Ldca;Liz;)V
    • setLit

      private static void setLit(WorldAccess world, BlockState state, BlockPos pos, boolean lit)
      Mappings:
      Namespace Name Mixin selector
      named setLit Lnet/minecraft/block/AbstractCandleBlock;setLit(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Z)V
      intermediary method_31612 Lnet/minecraft/class_5540;method_31612(Lnet/minecraft/class_1936;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Z)V
      official a Ldds;a(Ldca;Ldsd;Liz;Z)V
    • onExploded

      protected void onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack,BlockPos> stackMerger)
      Overrides:
      onExploded in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      named onExploded Lnet/minecraft/block/AbstractBlock;onExploded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/explosion/Explosion;Ljava/util/function/BiConsumer;)V
      intermediary method_55124 Lnet/minecraft/class_4970;method_55124(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1927;Ljava/util/function/BiConsumer;)V
      official a Ldsc;a(Ldsd;Ldbz;Liz;Ldbr;Ljava/util/function/BiConsumer;)V