-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de4a4c1
commit 38de645
Showing
29 changed files
with
115 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 1 addition & 26 deletions
27
src/main/java/world/bentobox/greenhouses/greenhouse/GreenhouseMob.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,6 @@ | ||
package world.bentobox.greenhouses.greenhouse; | ||
|
||
import java.util.Optional; | ||
|
||
import org.bukkit.Material; | ||
import org.bukkit.entity.EntityType; | ||
|
||
class GreenhouseMob { | ||
private final EntityType mobType; | ||
private final Material mobSpawnOn; | ||
/** | ||
* @param mobType - entity type of mob | ||
* @param mobSpawnOn - material on which it much spawn, or null if any | ||
*/ | ||
public GreenhouseMob(EntityType mobType, Material mobSpawnOn) { | ||
this.mobType = mobType; | ||
this.mobSpawnOn = mobSpawnOn; | ||
} | ||
/** | ||
* @return the mobType | ||
*/ | ||
public EntityType getMobType() { | ||
return mobType; | ||
} | ||
/** | ||
* @return the mobSpawnOn | ||
*/ | ||
public Optional<Material> getMobSpawnOn() { | ||
return Optional.of(mobSpawnOn); | ||
} | ||
} | ||
record GreenhouseMob(EntityType mobType, Material mobSpawnOn) { } |
29 changes: 1 addition & 28 deletions
29
src/main/java/world/bentobox/greenhouses/greenhouse/GreenhousePlant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,5 @@ | ||
package world.bentobox.greenhouses.greenhouse; | ||
|
||
import java.util.Optional; | ||
|
||
import org.bukkit.Material; | ||
|
||
class GreenhousePlant { | ||
private final Material plantMaterial; | ||
private final Material plantGrownOn; | ||
/** | ||
* Describes a recipe plant | ||
* @param plantMaterial - material | ||
* @param plantGrownOn - material on which this grows | ||
*/ | ||
public GreenhousePlant(Material plantMaterial,Material plantGrownOn) { | ||
this.plantMaterial = plantMaterial; | ||
this.plantGrownOn = plantGrownOn; | ||
} | ||
/** | ||
* @return the plantMaterial | ||
*/ | ||
public Material getPlantMaterial() { | ||
return plantMaterial; | ||
} | ||
/** | ||
* @return the plantGrownOn | ||
*/ | ||
public Optional<Material> getPlantGrownOn() { | ||
return Optional.ofNullable(plantGrownOn); | ||
} | ||
|
||
} | ||
record GreenhousePlant(Material plantMaterial,Material plantGrownOn) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.