Class ConfigurateOpsBuilder
ConfigurateOps instances.- Since:
- 4.3.0
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Create a new ops instance.Build a new ops instance, returned as part of a Dynamic.compressed(boolean compressed) Set whetherKeyablevalues should be compressed.factory(ConfigurationNodeFactory<? extends ConfigurationNode> supplier) Set the node factory for the returned ops.Set the node factory based on the options of the provided node.factoryFromSerializers(TypeSerializerCollection collection) Set a node factory that will use the provided collection.readProtection(ConfigurateOps.Protection readProtection) Set how nodes returned from read methods will be protected from modification.readWriteProtection(ConfigurateOps.Protection protection) Set how nodes will be protected from both read and write modifications.writeProtection(ConfigurateOps.Protection writeProtection) Set how nodes provided to mutator methods will be protected from modification.
- 
Method Details- 
factorypublic ConfigurateOpsBuilder factory(ConfigurationNodeFactory<? extends ConfigurationNode> supplier) Set the node factory for the returned ops.The default node factory wil create CommentedConfigurationNodeinstances using Confabricate's minecraft serializers.- Parameters:
- supplier- source for new nodes created to store values in the- create*methods
- Returns:
- this builder
- Since:
- 4.3.0
 
- 
factoryFromSerializersSet a node factory that will use the provided collection.This will replace any set factory(ConfigurationNodeFactory).- Parameters:
- collection- type serializers to use for nodes.
- Returns:
- this builder
- Since:
- 4.3.0
 
- 
factoryFromNodeSet the node factory based on the options of the provided node.This will replace any set factory(ConfigurationNodeFactory).- Parameters:
- node- node to use
- Returns:
- this builder
- Since:
- 4.3.0
 
- 
compressedSet whetherKeyablevalues should be compressed.- Parameters:
- compressed- whether to compress values
- Returns:
- this builder
- Since:
- 4.3.0
- See Also:
 
- 
readProtectionSet how nodes returned from read methods will be protected from modification.For read protection, the protection level refers to how the attached node will be affected by modifications made to the nodes returned from get*methods.- Parameters:
- readProtection- protection level
- Returns:
- this builder
- Since:
- 4.3.0
 
- 
writeProtectionSet how nodes provided to mutator methods will be protected from modification.For write protection, the protection level refers to how the provided prefixnode will be protected from seeing changes to the operation- Parameters:
- writeProtection- protection level
- Returns:
- this builder
- Since:
- 4.3.0
 
- 
readWriteProtectionSet how nodes will be protected from both read and write modifications.- Parameters:
- protection- protection level
- Returns:
- this builder
- Since:
- 4.3.0
- See Also:
 
- 
buildCreate a new ops instance.All options have defaults provided and all setters validate their input, so by the time this method is reached the builder will be in a valid state. - Returns:
- the new instance
- Since:
- 4.3.0
 
- 
buildWrappingBuild a new ops instance, returned as part of a Dynamic.Returned ops instances will not take type serializers or other options from the provided node. For that, use factoryFromNode(ConfigurationNode).- Parameters:
- node- wrapped node
- Returns:
- new dynamic
- Since:
- 4.3.0
 
 
-