Class LogBlock

Direct Known Subclasses:
Log1Block, Log2Block

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

    • LOG_AXIS

      public static final EnumProperty<LogBlock.Axis> LOG_AXIS
      Mappings:
      Namespace Name Mixin selector
      official a Laor;a:Latz;
      intermediary field_9524 Lnet/minecraft/class_206;field_9524:Lnet/minecraft/class_2245;
      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 Lalu;b(Lajs;Lco;Latl;)V
      intermediary method_8659 Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)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 PillarBlock
      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 Lalu;a(Lajs;Lco;Lcv;FFFILsw;)Latl;
      intermediary method_8645 Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;
      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;
    • withRotation

      public BlockState withRotation(BlockState state, BlockRotation rotation)
      Overrides:
      withRotation in class PillarBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Latl;Laqi;)Latl;
      intermediary method_11556 Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;
      named withRotation Lnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;