Class PlantTileType
java.lang.Object
nokunami.floral_warfare.common.entity.plants.PlantTileType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlantTileType(PlantTileType.Plantable plantingRules) PlantTileType(PlantTileType.Plantable plantingRules, net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> typeTag) -
Method Summary
Modifier and TypeMethodDescriptionaddPotType(Map<net.minecraft.world.item.Item, PotInteraction> map) addPotType(Map<net.minecraft.world.item.Item, PotInteraction> map, Predicate<AbstractPlant> predicate) blockParticle(Supplier<net.minecraft.world.level.block.Block> block) static booleanfloatsInLiquid(AbstractPlant plant) net.minecraft.resources.ResourceLocationget()net.minecraft.world.level.block.state.BlockStateSupplier<net.minecraft.sounds.SoundEvent>static List<PlantTileType>getTileTypeForTag(net.minecraft.world.entity.Entity entity) hasPlantingParticle(boolean b) booleanbooleanisPlantableOn(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos spawnPos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.phys.shapes.VoxelShape shape, AbstractPlant plant) booleanisPottableOn(Map<net.minecraft.world.item.Item, PotInteraction> map, AbstractPlant plant) booleanmatchTag(net.minecraft.world.entity.Entity entity) static booleanplantableOn(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos spawnPos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.phys.shapes.VoxelShape shape, AbstractPlant plant) booleanstatic booleanpottableOn(Map<net.minecraft.world.item.Item, PotInteraction> map, AbstractPlant plant) setFloatsInLiquid(boolean floats) setPathfinding(PlantFamily.PathFinding finding) shoveledSound(Supplier<net.minecraft.sounds.SoundEvent> sound)
-
Field Details
-
FALL_BACK_TILE_TYPE
-
-
Constructor Details
-
PlantTileType
-
PlantTileType
public PlantTileType(PlantTileType.Plantable plantingRules, net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> typeTag)
-
-
Method Details
-
isPlantableOn
public boolean isPlantableOn(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos spawnPos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.phys.shapes.VoxelShape shape, AbstractPlant plant) -
isPottableOn
public boolean isPottableOn(Map<net.minecraft.world.item.Item, PotInteraction> map, AbstractPlant plant) -
addPotType
-
addPotType
public PlantTileType addPotType(Map<net.minecraft.world.item.Item, PotInteraction> map, Predicate<AbstractPlant> predicate) -
matchTag
public boolean matchTag(net.minecraft.world.entity.Entity entity) -
plantingParticle
public boolean plantingParticle() -
hasPlantingParticle
-
getShoveledSound
-
shoveledSound
-
getBlockParticle
public net.minecraft.world.level.block.state.BlockState getBlockParticle() -
blockParticle
-
getPlantingParticles
-
setPlantingParticles
-
isFloatsInLiquid
public boolean isFloatsInLiquid() -
setFloatsInLiquid
-
pathFinding
-
setPathfinding
-
get
public net.minecraft.resources.ResourceLocation get() -
getTileTypeForTag
-
plantableOn
public static boolean plantableOn(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos spawnPos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.phys.shapes.VoxelShape shape, AbstractPlant plant) -
pottableOn
public static boolean pottableOn(Map<net.minecraft.world.item.Item, PotInteraction> map, AbstractPlant plant) -
floatsInLiquid
-