Class EntityConfigHolder<CONFIG extends EntityConfig>

java.lang.Object
com.wildfire.common.entitydata.EntityConfigHolder<CONFIG>
Direct Known Subclasses:
PlayerConfigHolder

public class EntityConfigHolder<CONFIG extends EntityConfig> extends Object
  • Field Details

  • Constructor Details

    • EntityConfigHolder

      protected EntityConfigHolder(UUID uuid, CONFIG config)
  • Method Details

    • getEntity

      public static EntityConfigHolder<? extends EntityConfig> getEntity(net.minecraft.world.entity.LivingEntity entity)
      Get the configuration for a given entity
      Returns:
      The relevant EntityConfig, or PlayerConfig if given a player
      API Note:
      Configuration settings for PlayerConfigs may not be immediately available upon being returned, and may take several seconds to be populated if loaded from the cloud sync server.
    • config

      public CONFIG config()
    • readFromStack

      public void readFromStack(net.minecraft.world.item.ItemStack chestplate)
      Copy gender settings included in the given item NBT to the current entity
      See Also:
    • hasJacketLayer

      public boolean hasJacketLayer()
      Only used in the case of armor stands; returns true if the player who equipped the armor stand's chestplate has their jacket layer visible.
    • breastPhysics

      public BothBreastsPhysics breastPhysics()
    • getDebugInfo

      public List<String> getDebugInfo()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • gender

      public final ConfigValue<Gender> gender()
    • breasts

      public Breasts breasts()
    • uvs

      public final UVs uvs()