Class PlantTileType

java.lang.Object
nokunami.floral_warfare.common.entity.plants.PlantTileType

public class PlantTileType extends Object
  • Field Details

    • FALL_BACK_TILE_TYPE

      public static final PlantTileType FALL_BACK_TILE_TYPE
  • Constructor Details

    • PlantTileType

      public PlantTileType(PlantTileType.Plantable plantingRules)
    • 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

      public PlantTileType addPotType(Map<net.minecraft.world.item.Item,PotInteraction> map)
    • 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

      public PlantTileType hasPlantingParticle(boolean b)
    • getShoveledSound

      public Supplier<net.minecraft.sounds.SoundEvent> getShoveledSound()
    • shoveledSound

      public PlantTileType shoveledSound(Supplier<net.minecraft.sounds.SoundEvent> sound)
    • getBlockParticle

      public net.minecraft.world.level.block.state.BlockState getBlockParticle()
    • blockParticle

      public PlantTileType blockParticle(Supplier<net.minecraft.world.level.block.Block> block)
    • getPlantingParticles

      public PlantTileType.PlantingParticles getPlantingParticles()
    • setPlantingParticles

      public PlantTileType setPlantingParticles(PlantTileType.PlantingParticles particles)
    • isFloatsInLiquid

      public boolean isFloatsInLiquid()
    • setFloatsInLiquid

      public PlantTileType setFloatsInLiquid(boolean floats)
    • pathFinding

      public PlantFamily.PathFinding pathFinding()
    • setPathfinding

      public PlantTileType setPathfinding(PlantFamily.PathFinding finding)
    • get

      public net.minecraft.resources.ResourceLocation get()
    • getTileTypeForTag

      public static List<PlantTileType> getTileTypeForTag(net.minecraft.world.entity.Entity entity)
    • 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

      public static boolean floatsInLiquid(AbstractPlant plant)