mirror of
https://github.com/Pridecraft-Studios/joy.git
synced 2025-09-11 13:08:00 -04:00
parent
13c97bbb86
commit
145f9d7cd5
@ -21,6 +21,7 @@ public class JoyData implements DataGeneratorEntrypoint {
|
|||||||
final var pack = fabricDataGenerator.createPack();
|
final var pack = fabricDataGenerator.createPack();
|
||||||
|
|
||||||
pack.addProvider(JoyBlockTagProvider::new);
|
pack.addProvider(JoyBlockTagProvider::new);
|
||||||
|
pack.addProvider(JoyEntityTagProvider::new);
|
||||||
pack.addProvider(JoyModelProvider::new);
|
pack.addProvider(JoyModelProvider::new);
|
||||||
|
|
||||||
for (final var translation : Bootstrap.getMissingTranslations()) {
|
for (final var translation : Bootstrap.getMissingTranslations()) {
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
package gay.pridecraft.joy.data;
|
||||||
|
|
||||||
|
import gay.pridecraft.joy.registry.JoyEntities;
|
||||||
|
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
|
||||||
|
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider;
|
||||||
|
import net.minecraft.registry.RegistryWrapper;
|
||||||
|
import net.minecraft.registry.tag.EntityTypeTags;
|
||||||
|
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Ampflower
|
||||||
|
* @since 1.0.0
|
||||||
|
**/
|
||||||
|
public class JoyEntityTagProvider extends FabricTagProvider.EntityTypeTagProvider {
|
||||||
|
public JoyEntityTagProvider(final FabricDataOutput output, final CompletableFuture<RegistryWrapper.WrapperLookup> completableFuture) {
|
||||||
|
super(output, completableFuture);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void configure(final RegistryWrapper.WrapperLookup wrapperLookup) {
|
||||||
|
getOrCreateTagBuilder(EntityTypeTags.BEEHIVE_INHABITORS).add(
|
||||||
|
JoyEntities.BII,
|
||||||
|
JoyEntities.ENBEE,
|
||||||
|
JoyEntities.TREE,
|
||||||
|
JoyEntities.TRANS_BEE
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user