Class BsonTransformationUtil
java.lang.Object
com.hypixel.hytale.builtin.asseteditor.util.BsonTransformationUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidactionOnProperty(org.bson.BsonDocument entity, String[] propertyPath, BiConsumer<org.bson.BsonValue, String> biConsumer, boolean create) static voidinsertProperty(org.bson.BsonDocument entity, String[] pathElements, org.bson.BsonValue value) static voidremoveProperty(org.bson.BsonDocument entity, String[] propertyPath) static voidsetProperty(org.bson.BsonDocument entity, String[] pathElements, org.bson.BsonValue value)
-
Constructor Details
-
BsonTransformationUtil
public BsonTransformationUtil()
-
-
Method Details
-
actionOnProperty
private static void actionOnProperty(org.bson.BsonDocument entity, @Nonnull String[] propertyPath, @Nonnull BiConsumer<org.bson.BsonValue, String> biConsumer, boolean create) -
removeProperty
-
setProperty
public static void setProperty(org.bson.BsonDocument entity, @Nonnull String[] pathElements, org.bson.BsonValue value) -
insertProperty
public static void insertProperty(org.bson.BsonDocument entity, @Nonnull String[] pathElements, org.bson.BsonValue value)
-