Package mindustry.maps.filters
Class RandomItemFilter
java.lang.Object
mindustry.maps.filters.GenerateFilter
mindustry.maps.filters.RandomItemFilter
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.maps.filters.GenerateFilter
GenerateFilter.GenerateInput
-
Field Summary
Fields inherited from class mindustry.maps.filters.GenerateFilter
seed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Tiles tiles, GenerateFilter.GenerateInput in) boolean
isPost()
options()
-
Field Details
-
drops
-
chance
public float chance
-
-
Constructor Details
-
RandomItemFilter
public RandomItemFilter()
-
-
Method Details
-
options
- Specified by:
options
in classGenerateFilter
- Returns:
- a new array of options for configuring this filter
-
apply
- Overrides:
apply
in classGenerateFilter
-
isPost
public boolean isPost()- Overrides:
isPost
in classGenerateFilter
- Returns:
- whether this filter can *only* be used while generating the map, e.g. is not undoable.
-