[Feature] Survives-On Tooltip for plants (can ge deactivated in BCLib Settings)

This commit is contained in:
Frank 2023-06-13 17:00:30 +02:00
parent 24cbb2edbc
commit 7739617dce
14 changed files with 250 additions and 0 deletions

View file

@ -0,0 +1,22 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvicesOnPallidium extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(
EndBlocks.PALLIDIUM_FULL,
EndBlocks.PALLIDIUM_HEAVY,
EndBlocks.PALLIDIUM_THIN,
EndBlocks.PALLIDIUM_TINY
);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnAmberMoss extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.AMBER_MOSS);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnChorusNylium extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.CHORUS_NYLIUM);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,21 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnEndBone extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(
EndBlocks.SANGNUM,
EndBlocks.MOSSY_OBSIDIAN,
EndBlocks.MOSSY_DRAGON_BONE
);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnEndMoss extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.END_MOSS);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,18 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnTags;
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnEndStone extends SurvivesOnTags {
List<TagKey<Block>> TAGS = List.of(CommonBlockTags.END_STONES);
@Override
default List<TagKey<Block>> getSurvivableTags() {
return TAGS;
}
}

View file

@ -0,0 +1,19 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnTags;
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
import net.minecraft.tags.BlockTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnEndStoneOrTrees extends SurvivesOnTags {
List<TagKey<Block>> TAGS = List.of(CommonBlockTags.END_STONES, BlockTags.LEAVES, BlockTags.LOGS);
@Override
default List<TagKey<Block>> getSurvivableTags() {
return TAGS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnJungleMoss extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.JUNGLE_MOSS);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnJungleMossOrMycelium extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.END_MOSS, EndBlocks.END_MYCELIUM, EndBlocks.JUNGLE_MOSS);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnMossOrDust extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.END_MOSS, EndBlocks.ENDSTONE_DUST);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnMossOrMycelium extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.END_MOSS, EndBlocks.END_MYCELIUM);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnPinkMoss extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.PINK_MOSS);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnRutiscus extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.RUTISCUS);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}

View file

@ -0,0 +1,17 @@
package org.betterx.betterend.interfaces.survives;
import org.betterx.bclib.interfaces.SurvivesOnBlocks;
import org.betterx.betterend.registry.EndBlocks;
import net.minecraft.world.level.block.Block;
import java.util.List;
public interface SurvivesOnShadowGrass extends SurvivesOnBlocks {
List<Block> BLOCKS = List.of(EndBlocks.SHADOW_GRASS);
@Override
default List<Block> getSurvivableBlocks() {
return BLOCKS;
}
}