mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-28 15:38:00 +01:00
17 lines
681 B
Java
17 lines
681 B
Java
|
package com.minelittlepony.unicopia.block;
|
||
|
|
||
|
import net.minecraft.block.entity.BlockEntity;
|
||
|
import net.minecraft.block.entity.BlockEntityType;
|
||
|
import net.minecraft.block.entity.BlockEntityType.Builder;
|
||
|
import net.minecraft.util.registry.Registry;
|
||
|
|
||
|
public interface UBlockEntities {
|
||
|
BlockEntityType<WeatherVaneBlock.WeatherVane> WEATHER_VANE = create("weather_vane", BlockEntityType.Builder.create(WeatherVaneBlock.WeatherVane::new, UBlocks.WEATHER_VANE));
|
||
|
|
||
|
static <T extends BlockEntity> BlockEntityType<T> create(String id, Builder<T> builder) {
|
||
|
return Registry.register(Registry.BLOCK_ENTITY_TYPE, id, builder.build(null));
|
||
|
}
|
||
|
|
||
|
static void bootstrap() {}
|
||
|
}
|