23w46a
This commit is contained in:
1 parent
687591c5d5
commit
df017bb122
4 files changed
+35
-32
No files matched your search
@@ -45,6 +45,7 @@ import net.minecraft.world.level.pathfinder.Path;
|
||||
import net.minecraft.world.phys.AABB;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
import net.minecraft.world.scores.Objective;
|
||||
import net.minecraft.world.scores.ScoreHolder;
|
||||
import net.minecraft.world.scores.criteria.ObjectiveCriteria;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -384,6 +385,11 @@ public class ValueConversions
|
||||
return MapValue.wrap(ret);
|
||||
}
|
||||
|
||||
public static Value of(final ScoreHolder scoreHolder)
|
||||
{
|
||||
return FormattedTextValue.of(scoreHolder.getFeedbackDisplayName());
|
||||
}
|
||||
|
||||
public static Value fromProperty(BlockState state, Property<?> p)
|
||||
{
|
||||
Comparable<?> object = state.getValue(p);
|
||||
|
||||
Reference in new issue
Block a user