Package hiiragi283.lib.registry
Class HTWeatheringCopperBlocks
-
- All Implemented Interfaces:
@JvmRecord() public final class HTWeatheringCopperBlocks<WAXED extends Block, WEATHERING extends Block, WeatheringCopper, ITEM extends Item> extends Record
酸化する銅系ブロックとさび止めされた銅系ブロックを束ねたクラスです。
- Since:
0.17.0
Hiiragi Tsubas
-
-
Field Summary
Fields Modifier and Type Field Description private final HTCopperMap<HTDeferredBlockAndItem<WEATHERING, ITEM>>weatheringprivate final HTCopperMap<HTDeferredBlockAndItem<WAXED, ITEM>>waxedprivate final List<HTDeferredBlockAndItem<Block, ITEM>>allBlocks
-
Constructor Summary
Constructors Constructor Description HTWeatheringCopperBlocks(HTCopperMap<HTDeferredBlockAndItem<WEATHERING, ITEM>> weathering, HTCopperMap<HTDeferredBlockAndItem<WAXED, ITEM>> waxed)
-
Method Summary
Modifier and Type Method Description final HTCopperMap<HTDeferredBlockAndItem<WEATHERING, ITEM>>getWeathering()final HTCopperMap<HTDeferredBlockAndItem<WAXED, ITEM>>getWaxed()final List<HTDeferredBlockAndItem<Block, ITEM>>getAllBlocks()final Pair<HTDeferredBlockAndItem<WEATHERING, ITEM>, HTDeferredBlockAndItem<WAXED, ITEM>>get(WeatheringCopper.WeatherState state)指定したWeatheringCopper.WeatherStateから対応する銅系ブロックを取得します。 final static <WAXED extends Block, WEATHERING extends Block, WeatheringCopper> HTWeatheringCopperBlocks<WAXED, WEATHERING, HTBlockItem<Block>>createSimple(HTDeferredBlockAndItemRegister register, String name, Function1<WeatheringCopper.WeatherState, BlockBehaviour.Properties> blockProp, Function1<BlockBehaviour.Properties, WAXED> waxedFactory, Function2<WeatheringCopper.WeatherState, BlockBehaviour.Properties, WEATHERING> weatheringFactory, Function1<Item.Properties, Item.Properties> itemProp)final static <WAXED extends Block, WEATHERING extends Block, WeatheringCopper, ITEM extends Item> HTWeatheringCopperBlocks<WAXED, WEATHERING, ITEM>create(HTDeferredBlockAndItemRegister register, String name, Function1<WeatheringCopper.WeatherState, BlockBehaviour.Properties> blockProp, Function1<BlockBehaviour.Properties, WAXED> waxedFactory, Function2<WeatheringCopper.WeatherState, BlockBehaviour.Properties, WEATHERING> weatheringFactory, Function2<Block, Item.Properties, ITEM> itemFactory, Function1<Item.Properties, Item.Properties> itemProp)-
-
Constructor Detail
-
HTWeatheringCopperBlocks
HTWeatheringCopperBlocks(HTCopperMap<HTDeferredBlockAndItem<WEATHERING, ITEM>> weathering, HTCopperMap<HTDeferredBlockAndItem<WAXED, ITEM>> waxed)
- Parameters:
weathering- さび止めされた銅系ブロックの一覧waxed- 酸化する銅系ブロックの一覧
-
-
Method Detail
-
getWeathering
final HTCopperMap<HTDeferredBlockAndItem<WEATHERING, ITEM>> getWeathering()
-
getWaxed
final HTCopperMap<HTDeferredBlockAndItem<WAXED, ITEM>> getWaxed()
-
getAllBlocks
final List<HTDeferredBlockAndItem<Block, ITEM>> getAllBlocks()
-
get
final Pair<HTDeferredBlockAndItem<WEATHERING, ITEM>, HTDeferredBlockAndItem<WAXED, ITEM>> get(WeatheringCopper.WeatherState state)
指定したWeatheringCopper.WeatherStateから対応する銅系ブロックを取得します。
- Returns:
対応する酸化する銅系ブロックとさび止めされた銅系ブロック
-
createSimple
final static <WAXED extends Block, WEATHERING extends Block, WeatheringCopper> HTWeatheringCopperBlocks<WAXED, WEATHERING, HTBlockItem<Block>> createSimple(HTDeferredBlockAndItemRegister register, String name, Function1<WeatheringCopper.WeatherState, BlockBehaviour.Properties> blockProp, Function1<BlockBehaviour.Properties, WAXED> waxedFactory, Function2<WeatheringCopper.WeatherState, BlockBehaviour.Properties, WEATHERING> weatheringFactory, Function1<Item.Properties, Item.Properties> itemProp)
-
create
final static <WAXED extends Block, WEATHERING extends Block, WeatheringCopper, ITEM extends Item> HTWeatheringCopperBlocks<WAXED, WEATHERING, ITEM> create(HTDeferredBlockAndItemRegister register, String name, Function1<WeatheringCopper.WeatherState, BlockBehaviour.Properties> blockProp, Function1<BlockBehaviour.Properties, WAXED> waxedFactory, Function2<WeatheringCopper.WeatherState, BlockBehaviour.Properties, WEATHERING> weatheringFactory, Function2<Block, Item.Properties, ITEM> itemFactory, Function1<Item.Properties, Item.Properties> itemProp)
-
-
-
-