Class EntityConfigHolder<CONFIG extends EntityConfig>
java.lang.Object
com.wildfire.common.entitydata.EntityConfigHolder<CONFIG>
- Direct Known Subclasses:
PlayerConfigHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BothBreastsPhysicsstatic final com.google.common.cache.LoadingCache<UUID, EntityConfigHolder<? extends EntityConfig>> protected CONFIGbooleanprotected @Nullable BreastDataComponentprotected booleanfinal UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbreasts()config()final ConfigValue<Gender> gender()static EntityConfigHolder<? extends EntityConfig> getEntity(net.minecraft.world.entity.LivingEntity entity) Get the configuration for a given entitybooleanOnly used in the case ofarmor stands; returnstrueif the player who equipped the armor stand's chestplate has their jacket layer visible.voidreadFromStack(net.minecraft.world.item.ItemStack chestplate) Copy gender settings included in the givenitem NBTto the current entitytoString()final UVsuvs()
-
Field Details
-
CACHE
public static final com.google.common.cache.LoadingCache<UUID, EntityConfigHolder<? extends EntityConfig>> CACHE -
uuid
-
breastPhysics
-
jacketLayer
protected boolean jacketLayer -
fromComponent
-
forceSimplifiedPhysics
@Internal public boolean forceSimplifiedPhysics -
config
-
-
Constructor Details
-
EntityConfigHolder
-
-
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, orPlayerConfigif given aplayer - 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 thecloud sync server.
-
config
-
readFromStack
public void readFromStack(net.minecraft.world.item.ItemStack chestplate) Copy gender settings included in the givenitem NBTto the current entity- See Also:
-
hasJacketLayer
public boolean hasJacketLayer()Only used in the case ofarmor stands; returnstrueif the player who equipped the armor stand's chestplate has their jacket layer visible. -
breastPhysics
-
getDebugInfo
-
toString
-
gender
-
breasts
-
uvs
-