Class LogBlock

Direct Known Subclasses:
Log1Block, Log2Block

public abstract class LogBlock
extends PillarBlock
Mappings:
Namespace Name
official ahw
intermediary net/minecraft/class_244
named net/minecraft/block/LogBlock
  • Field Details

    • LOG_AXIS

      public static final EnumProperty<LogBlock.Axis> LOG_AXIS
      Mappings:
      Namespace Name Mixin selector
      official a Lahw;a:Lamm;
      intermediary field_1032 Lnet/minecraft/class_244;field_1032:Lnet/minecraft/class_390;
      named LOG_AXIS Lnet/minecraft/block/LogBlock;LOG_AXIS:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • LogBlock

      public LogBlock()
  • Method Details

    • onBreaking

      public void onBreaking​(World world, BlockPos pos, BlockState state)
      Runs when the block is removed (by an entity or explosion).
      Overrides:
      onBreaking in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladm;Lcj;Lalz;)V
      intermediary method_688 Lnet/minecraft/class_160;method_688(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)V
      named onBreaking Lnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • getStateFromData

      public BlockState getStateFromData​(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity)
      Returns a BlockState from an id
      Overrides:
      getStateFromData in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      dir - The block's direction
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lcq;FFFILpr;)Lalz;
      intermediary method_656 Lnet/minecraft/class_160;method_656(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;FFFILnet/minecraft/class_1752;)Lnet/minecraft/class_376;
      named getStateFromData Lnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;