Class RedstoneOreBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.RedstoneOreBlock

public class RedstoneOreBlock
extends Block
Mappings:
Namespace Name
official aja
intermediary net/minecraft/class_285
named net/minecraft/block/RedstoneOreBlock
  • Field Details

    • field_1142

      private final boolean field_1142
      Mappings:
      Namespace Name Mixin selector
      official a Laja;a:Z
      intermediary field_1142 Lnet/minecraft/class_285;field_1142:Z
      named field_1142 Lnet/minecraft/block/RedstoneOreBlock;field_1142:Z
  • Constructor Details

    • RedstoneOreBlock

      public RedstoneOreBlock​(boolean bool)
  • Method Details

    • getTickRate

      public int getTickRate​(World world)
      Returns the block's tick rate. Default is 10.
      Overrides:
      getTickRate in class Block
      Parameters:
      world - The world that the block is placed in
      Returns:
      Tick rate
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;)I
      intermediary method_642 Lnet/minecraft/class_160;method_642(Lnet/minecraft/class_99;)I
      named getTickRate Lnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
    • onBlockBreakStart

      public void onBlockBreakStart​(World world, BlockPos pos, PlayerEntity player)
      Overrides:
      onBlockBreakStart in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lwn;)V
      intermediary method_661 Lnet/minecraft/class_160;method_661(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1963;)V
      named onBlockBreakStart Lnet/minecraft/block/Block;onBlockBreakStart(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V
    • onSteppedOn

      public void onSteppedOn​(World world, BlockPos pos, Entity entity)
      Runs every time an entity steps on the Block. Used by redstone ore to change it's state.
      Overrides:
      onSteppedOn in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      entity - The entity who stepped on the block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lpk;)V
      intermediary method_658 Lnet/minecraft/class_160;method_658(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1745;)V
      named onSteppedOn Lnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
    • onUse

      public boolean onUse​(World world, BlockPos pos, BlockState state, PlayerEntity player, Direction direction, float float2, float float3, float float4)
      Runs when the block is used, i.e. right clicked in most cases. It is similar to the same method in Item, but this method is called only when the player uses it when the block is placed, not when the player is holding the BlockItem.
      Overrides:
      onUse in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      player - The player who used the block
      direction - The direction that the block is facing
      Returns:
      Whether the action is succesful
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;Lwn;Lcq;FFF)Z
      intermediary method_654 Lnet/minecraft/class_160;method_654(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_1963;Lnet/minecraft/class_1383;FFF)Z
      named onUse Lnet/minecraft/block/Block;onUse(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Direction;FFF)Z
    • method_969

      private void method_969​(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Laja;e(Ladm;Lcj;)V
      intermediary method_969 Lnet/minecraft/class_285;method_969(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)V
      named method_969 Lnet/minecraft/block/RedstoneOreBlock;method_969(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • scheduledTick

      public void scheduledTick​(World world, BlockPos pos, BlockState state, Random rand)
      Runs when the block is updated as per a schedule
      Overrides:
      scheduledTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_690 Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • getDropItem

      public Item getDropItem​(BlockState blockState, Random random, int state)
      Returns the item that must be dropped when the block is broken
      Overrides:
      getDropItem in class Block
      Parameters:
      blockState - The block's BlockState
      random - Random object
      state - State
      Returns:
      The Item that drops after the block breaks
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lalz;Ljava/util/Random;I)Lzw;
      intermediary method_674 Lnet/minecraft/class_160;method_674(Lnet/minecraft/class_376;Ljava/util/Random;I)Lnet/minecraft/class_2054;
      named getDropItem Lnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
    • getBonusDrops

      public int getBonusDrops​(int id, Random rand)
      Returns the number bonus drops for a block when broken.
      Overrides:
      getBonusDrops in class Block
      Parameters:
      id - Id
      rand - Random object
      Returns:
      Bonus drops for a block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(ILjava/util/Random;)I
      intermediary method_639 Lnet/minecraft/class_160;method_639(ILjava/util/Random;)I
      named getBonusDrops Lnet/minecraft/block/Block;getBonusDrops(ILjava/util/Random;)I
    • getDropCount

      public int getDropCount​(Random rand)
      Returns the amount of items the block should drop on breaking without bonus rolls.
      Overrides:
      getDropCount in class Block
      Parameters:
      rand - Random object
      Returns:
      Amount of items to be dropped
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ljava/util/Random;)I
      intermediary method_677 Lnet/minecraft/class_160;method_677(Ljava/util/Random;)I
      named getDropCount Lnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
    • randomDropAsItem

      public void randomDropAsItem​(World world, BlockPos pos, BlockState state, float chance, int id)
      Called when the block must be dropped as an item by dropAsItem, but luck is taken into consideration here.
      Overrides:
      randomDropAsItem in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      chance - The chance (luck factor)
      id - Id
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;FI)V
      intermediary method_646 Lnet/minecraft/class_160;method_646(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;FI)V
      named randomDropAsItem Lnet/minecraft/block/Block;randomDropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;FI)V
    • randomDisplayTick

      @Environment(CLIENT) public void randomDisplayTick​(World world, BlockPos pos, BlockState state, Random rand)
      Runs every random display Tick. Useful for displaying particles around a block, like Redstone Ore.
      Overrides:
      randomDisplayTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_704 Lnet/minecraft/class_160;method_704(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • method_970

      private void method_970​(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official f Laja;f(Ladm;Lcj;)V
      intermediary method_970 Lnet/minecraft/class_285;method_970(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)V
      named method_970 Lnet/minecraft/block/RedstoneOreBlock;method_970(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • createStackFromBlock

      protected ItemStack createStackFromBlock​(BlockState state)
      Creates and returns and ItemStack from a block.
      Overrides:
      createStackFromBlock in class Block
      Parameters:
      state - The block's BlockState
      Returns:
      An ItemStack instance containing the block
      Mappings:
      Namespace Name Mixin selector
      official i Lafh;i(Lalz;)Lzx;
      intermediary method_724 Lnet/minecraft/class_160;method_724(Lnet/minecraft/class_376;)Lnet/minecraft/class_2056;
      named createStackFromBlock Lnet/minecraft/block/Block;createStackFromBlock(Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;