Class DynamicComponent
java.lang.Object
com.simibubi.create.foundation.utility.DynamicComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayCustomText(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, String tagElement) net.minecraft.network.chat.MutableComponentget()static net.minecraft.commands.CommandSourceStackgetCommandSource(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos) static com.google.gson.JsonElementgetJsonFromString(String string) booleanisValid()static net.minecraft.network.chat.ComponentparseCustomText(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, com.google.gson.JsonElement customText) voidread(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.nbt.CompoundTag nbt) resolve()booleanvoidwrite(net.minecraft.nbt.CompoundTag nbt)
-
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
-
isValid
public boolean isValid() -
resolve
-
get
public net.minecraft.network.chat.MutableComponent get() -
read
public void read(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.nbt.CompoundTag nbt) -
write
public void write(net.minecraft.nbt.CompoundTag nbt) -
getJsonFromString
-
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) -
getCommandSource
public static net.minecraft.commands.CommandSourceStack getCommandSource(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos)
-