Update annotations
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package exopandora.worldhandler.util;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.ChatFormatting;
|
||||
import net.minecraft.nbt.StringTag;
|
||||
import net.minecraft.nbt.Tag;
|
||||
@@ -69,6 +71,7 @@ public class MutableTextComponent extends TextComponent
|
||||
return FormattedCharSequence.forward(string, this.getStyle());
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Tag serialize()
|
||||
{
|
||||
if(this.getContents() != null && !this.getContents().isEmpty())
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package exopandora.worldhandler.util;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.nbt.StringTag;
|
||||
@@ -37,6 +38,7 @@ public class SignText extends MutableTextComponent
|
||||
return this.getStyle().getClickEvent() != null && this.getStyle().getClickEvent().getAction() == Action.RUN_COMMAND && this.getStyle().getClickEvent().getValue() != null;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public Tag serialize()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user