Class BlockColorMap<T extends net.minecraft.world.level.block.Block>

java.lang.Object
com.refinedmods.refinedstorage.util.ColorMap<net.minecraft.world.level.block.Block,T>
com.refinedmods.refinedstorage.util.BlockColorMap<T>

public class BlockColorMap<T extends net.minecraft.world.level.block.Block> extends ColorMap<net.minecraft.world.level.block.Block,T>
  • Field Summary

    Fields inherited from class com.refinedmods.refinedstorage.util.ColorMap

    DEFAULT_COLOR, lateRegistration, map, registry
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockColorMap(net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> registry)
     
    BlockColorMap(net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> registry, List<Runnable> lateRegistration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <S extends BaseBlock>
    net.minecraft.world.InteractionResult
    changeBlockColor(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
     
    net.minecraft.world.level.block.Block[]
     
    void
    registerBlocks(String name, Supplier<T> blockFactory)
     
    net.minecraft.world.InteractionResult
    setBlockState(net.minecraft.world.level.block.state.BlockState newState, net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
     

    Methods inherited from class com.refinedmods.refinedstorage.util.ColorMap

    forEach, get, getColorFromObject, put, values

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlockColorMap

      public BlockColorMap(net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> registry)
    • BlockColorMap

      public BlockColorMap(net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> registry, List<Runnable> lateRegistration)
  • Method Details

    • getBlocks

      public net.minecraft.world.level.block.Block[] getBlocks()
    • registerBlocks

      public void registerBlocks(String name, Supplier<T> blockFactory)
    • changeBlockColor

      public <S extends BaseBlock> net.minecraft.world.InteractionResult changeBlockColor(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
    • setBlockState

      public net.minecraft.world.InteractionResult setBlockState(net.minecraft.world.level.block.state.BlockState newState, net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)