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
ConstructorDescriptionBlockColorMap
(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 TypeMethodDescription<S extends BaseBlock>
net.minecraft.world.InteractionResultchangeBlockColor
(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)
-
Constructor Details
-
BlockColorMap
public BlockColorMap(net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.level.block.Block> registry) -
BlockColorMap
-
-
Method Details
-
getBlocks
public net.minecraft.world.level.block.Block[] getBlocks() -
registerBlocks
-
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)
-