-
Notifications
You must be signed in to change notification settings - Fork 24
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
Showing
179 changed files
with
4,055 additions
and
2,805 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: Unconfirmed | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
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
18 changes: 18 additions & 0 deletions
18
src/main/java/pokecube/adventures/ai/brain/MemoryTypes.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package pokecube.adventures.ai.brain; | ||
|
||
import java.util.Optional; | ||
|
||
import net.minecraft.entity.LivingEntity; | ||
import net.minecraft.entity.ai.brain.memory.MemoryModuleType; | ||
import net.minecraftforge.event.RegistryEvent.Register; | ||
import pokecube.adventures.PokecubeAdv; | ||
|
||
public class MemoryTypes | ||
{ | ||
public static final MemoryModuleType<LivingEntity> BATTLETARGET = new MemoryModuleType<>(Optional.empty()); | ||
|
||
public static void register(final Register<MemoryModuleType<?>> event) | ||
{ | ||
event.getRegistry().register(MemoryTypes.BATTLETARGET.setRegistryName(PokecubeAdv.MODID, "battle_target")); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/pokecube/adventures/ai/poi/PointsOfInterest.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package pokecube.adventures.ai.poi; | ||
|
||
import java.util.Set; | ||
|
||
import com.google.common.collect.Sets; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.village.PointOfInterestType; | ||
import net.minecraftforge.event.RegistryEvent.Register; | ||
import pokecube.adventures.PokecubeAdv; | ||
import pokecube.core.PokecubeItems; | ||
|
||
public class PointsOfInterest | ||
{ | ||
public static Set<BlockState> LABMACHINES = Sets.newHashSet(); | ||
|
||
public static PointOfInterestType GENELAB; | ||
public static PointOfInterestType HEALER; | ||
|
||
public static void register(final Register<PointOfInterestType> event) | ||
{ | ||
PointsOfInterest.LABMACHINES.addAll(PokecubeAdv.EXTRACTOR.getStateContainer().getValidStates()); | ||
PointsOfInterest.LABMACHINES.addAll(PokecubeAdv.SPLICER.getStateContainer().getValidStates()); | ||
PointsOfInterest.LABMACHINES.addAll(PokecubeAdv.CLONER.getStateContainer().getValidStates()); | ||
|
||
PointsOfInterest.GENELAB = new PointOfInterestType("pokecube_adventures:gene_lab", PointsOfInterest.LABMACHINES, | ||
1, null, 2); | ||
PointsOfInterest.HEALER = new PointOfInterestType("pokecube_adventures:healer", Sets.newHashSet( | ||
PokecubeItems.HEALER.getStateContainer().getValidStates()), 1, null, 2); | ||
System.out.println(Sets.newHashSet(PokecubeItems.HEALER.getStateContainer().getValidStates())); | ||
System.out.println(PointsOfInterest.LABMACHINES); | ||
|
||
event.getRegistry().register(PointsOfInterest.GENELAB.setRegistryName("pokecube_adventures:gene_lab")); | ||
event.getRegistry().register(PointsOfInterest.HEALER.setRegistryName("pokecube_adventures:healer")); | ||
|
||
PointOfInterestType.func_221052_a(PointsOfInterest.GENELAB); | ||
PointOfInterestType.func_221052_a(PointsOfInterest.HEALER); | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package pokecube.adventures.ai.poi; | ||
|
||
import com.google.common.collect.ImmutableSet; | ||
|
||
import net.minecraft.entity.merchant.villager.VillagerProfession; | ||
import net.minecraftforge.event.RegistryEvent.Register; | ||
import pokecube.core.entity.npc.NpcType; | ||
|
||
public class Professions | ||
{ | ||
public static VillagerProfession HEALER; | ||
public static VillagerProfession PROFESSOR; | ||
|
||
public static void register(final Register<VillagerProfession> event) | ||
{ | ||
Professions.HEALER = new VillagerProfession("pokecube_adventures:healer", PointsOfInterest.HEALER, ImmutableSet | ||
.of(), ImmutableSet.of()); | ||
Professions.PROFESSOR = new VillagerProfession("pokecube_adventures:professor", PointsOfInterest.GENELAB, | ||
ImmutableSet.of(), ImmutableSet.of()); | ||
event.getRegistry().register(Professions.HEALER.setRegistryName("pokecube_adventures:healer")); | ||
event.getRegistry().register(Professions.PROFESSOR.setRegistryName("pokecube_adventures:professor")); | ||
|
||
NpcType.HEALER.setProfession(Professions.HEALER); | ||
NpcType.PROFESSOR.setProfession(Professions.PROFESSOR); | ||
} | ||
} |
Oops, something went wrong.