Record Class Settings
- Record Components:
filter
- filterlimit
- limit
Sanitizer
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SettingsBuilder
builder()
final boolean
Indicates whether some other object is "equal to" this one.filter()
Returns the value of thefilter
record component.final int
hashCode()
Returns a hash code value for this object.limit()
Returns the value of thelimit
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
DEFAULT
Default settings for a certain feature.This constant represents the default settings for the feature. It is a static final variable of type Settings. The settings are constructed using a SettingsBuilder, which allows for configuring various filters and limits. Here is a breakdown of the default settings:
Filters: - Block Filter: Allows blocking certain block types based on their materials. The following materials are blacklisted: - COMMAND_BLOCK - REPEATING_COMMAND_BLOCK - CHAIN_COMMAND_BLOCK - STRUCTURE_BLOCK - Entity Filter: Allows filtering entities based on their types. The following entities are blacklisted: - COMMAND_BLOCK_MINECART - FALLING_BLOCK - POTION - Text Blacklist: Contains a list of blacklisted text entries. The following entries are blacklisted: - "clickEvent" - "run_command" - NBT Blacklist: Contains a list of blacklisted NBT tags. The following tags are blacklisted: - "LootTable" - "ArmorItem" - "ArmorItems" - "HandItem" - "HandItems" - "FireworksItem" - "Item" - "Items" - "DecorItem" - "Inventory" - "buy" - "buyB" - "sell" - "SaddleItem"
Limits: - Size Limit: Specifies the maximum size of the feature. The size is set to 600. - Content Limit: Specifies the maximum limits for different types of content within the feature: - Blocks: Limited to 50000. - Creatures: Limited to 50. - Non-Creatures: Limited to 600.
- See Also:
-
-
Constructor Details
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
filter
Returns the value of thefilter
record component.- Returns:
- the value of the
filter
record component
-
limit
Returns the value of thelimit
record component.- Returns:
- the value of the
limit
record component
-