Class ExpandEntityTypeForge
java.lang.Object
com.blamejared.crafttweaker.natives.entity.ExpandEntityTypeForge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetNameTag(net.minecraft.world.entity.EntityType<net.minecraft.world.entity.Entity> internal, INameTagFunction function) Sets the name tag handler for this EntityType.
-
Constructor Details
-
ExpandEntityTypeForge
public ExpandEntityTypeForge()
-
-
Method Details
-
setNameTag
public static void setNameTag(net.minecraft.world.entity.EntityType<net.minecraft.world.entity.Entity> internal, INameTagFunction function) Sets the name tag handler for this EntityType.- Parameters:
function- The function that controls how this EntityType's name tag is rendered.- DocParam:
- function (entity, result) => { result.setAllow(); result.content = "Custom name! Position: " + entity.position; })
-