Class DynamicComponent

java.lang.Object
com.simibubi.create.foundation.utility.DynamicComponent

public class DynamicComponent extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    displayCustomText(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, String tagElement)
     
    net.minecraft.network.chat.MutableComponent
    get()
     
    static net.minecraft.commands.CommandSourceStack
    getCommandSource(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos)
     
    static com.google.gson.JsonElement
     
    boolean
     
    static net.minecraft.network.chat.Component
    parseCustomText(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, com.google.gson.JsonElement customText)
     
    static net.minecraft.network.chat.Component
    parseCustomText(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.network.chat.Component customText)
     
    void
    read(net.minecraft.core.BlockPos pos, net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries)
     
     
    boolean
    sameAs(String tagElement)
     
    void
    write(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DynamicComponent

      public DynamicComponent()
  • Method Details

    • displayCustomText

      public void displayCustomText(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, String tagElement)
    • sameAs

      public boolean sameAs(String tagElement)
    • isValid

      public boolean isValid()
    • resolve

      public String resolve()
    • get

      public net.minecraft.network.chat.MutableComponent get()
    • read

      public void read(net.minecraft.core.BlockPos pos, net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries)
    • write

      public void write(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries)
    • getJsonFromString

      public static com.google.gson.JsonElement getJsonFromString(String string)
    • parseCustomText

      public static net.minecraft.network.chat.Component parseCustomText(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, com.google.gson.JsonElement customText)
    • parseCustomText

      public static net.minecraft.network.chat.Component parseCustomText(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.network.chat.Component customText)
    • getCommandSource

      public static net.minecraft.commands.CommandSourceStack getCommandSource(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos)