aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--options.txt108
-rw-r--r--servers.datbin0 -> 15755 bytes
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/EventListener.java1
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java31
4 files changed, 140 insertions, 0 deletions
diff --git a/options.txt b/options.txt
new file mode 100644
index 00000000..3435e451
--- /dev/null
+++ b/options.txt
@@ -0,0 +1,108 @@
+invertYMouse:false
+mouseSensitivity:0.5
+fov:1.0
+gamma:0.0
+saturation:0.0
+renderDistance:12
+guiScale:0
+particles:0
+bobView:true
+anaglyph3d:false
+maxFps:120
+fboEnable:true
+difficulty:3
+fancyGraphics:true
+ao:2
+renderClouds:true
+resourcePacks:[]
+incompatibleResourcePacks:[]
+lastServer:mc.hyp
+lang:en_US
+chatVisibility:0
+chatColors:true
+chatLinks:true
+chatLinksPrompt:true
+chatOpacity:1.0
+snooperEnabled:true
+fullscreen:false
+enableVsync:true
+useVbo:false
+hideServerAddress:false
+advancedItemTooltips:false
+pauseOnLostFocus:true
+touchscreen:false
+overrideWidth:0
+overrideHeight:0
+heldItemTooltips:true
+chatHeightFocused:1.0
+chatHeightUnfocused:0.44366196
+chatScale:1.0
+chatWidth:1.0
+showInventoryAchievementHint:true
+mipmapLevels:4
+streamBytesPerPixel:0.5
+streamMicVolume:1.0
+streamSystemVolume:1.0
+streamKbps:0.5412844
+streamFps:0.31690142
+streamCompression:1
+streamSendMetadata:true
+streamPreferredServer:
+streamChatEnabled:0
+streamChatUserFilter:0
+streamMicToggleBehavior:0
+forceUnicodeFont:false
+allowBlockAlternatives:true
+reducedDebugInfo:false
+useNativeTransport:true
+entityShadows:true
+realmsNotifications:true
+key_key.attack:-99
+key_key.use:-100
+key_key.forward:17
+key_key.left:30
+key_key.back:31
+key_key.right:32
+key_key.jump:57
+key_key.sneak:42
+key_key.sprint:58
+key_key.drop:16
+key_key.inventory:18
+key_key.chat:20
+key_key.playerlist:15
+key_key.pickItem:-98
+key_key.command:53
+key_key.screenshot:60
+key_key.togglePerspective:63
+key_key.smoothCamera:0
+key_key.streamStartStop:64
+key_key.streamPauseUnpause:65
+key_key.streamCommercial:0
+key_key.streamToggleMic:0
+key_key.fullscreen:87
+key_key.spectatorOutlines:0
+key_key.hotbar.1:2
+key_key.hotbar.2:3
+key_key.hotbar.3:4
+key_key.hotbar.4:5
+key_key.hotbar.5:6
+key_key.hotbar.6:7
+key_key.hotbar.7:8
+key_key.hotbar.8:9
+key_key.hotbar.9:10
+soundCategory_master:1.0
+soundCategory_music:1.0
+soundCategory_record:1.0
+soundCategory_weather:1.0
+soundCategory_block:1.0
+soundCategory_hostile:1.0
+soundCategory_neutral:1.0
+soundCategory_player:1.0
+soundCategory_ambient:1.0
+modelPart_cape:true
+modelPart_jacket:true
+modelPart_left_sleeve:true
+modelPart_right_sleeve:true
+modelPart_left_pants_leg:true
+modelPart_right_pants_leg:true
+modelPart_hat:true
diff --git a/servers.dat b/servers.dat
new file mode 100644
index 00000000..13096de0
--- /dev/null
+++ b/servers.dat
Binary files differ
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
index 2700b6bf..d80a474d 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
@@ -14,6 +14,7 @@ public class EventListener {
if (timerTick % 5 == 0) {
SkyblockStatus skyblockStatus = DungeonsGuide.getDungeonsGuide().getSkyblockStatus();
boolean isOnDungeon = skyblockStatus.isOnDungeon();
+// System.out.println(isOnDungeon);
skyblockStatus.updateStatus();
if (!skyblockStatus.isOnDungeon()) {
skyblockStatus.setContext(null);
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java
index b7592eb8..104225f3 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java
@@ -1,17 +1,48 @@
package kr.syeyoung.dungeonsguide.dungeon;
import lombok.Getter;
+import net.minecraft.client.Minecraft;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemMap;
+import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
+import net.minecraft.world.storage.MapData;
public class DungeonContext {
@Getter
private World world;
+ private byte[] lastMapData;
+
public DungeonContext(World world) {
this.world = world;
}
+
public void tick() {
+ mapTick();
+ }
+
+ private void buildMap(byte[] mapData) {
+
+ }
+ private void processMap(byte[] mapData) {
+
+ }
+
+ private void mapTick() {
+ ItemStack stack = Minecraft.getMinecraft().thePlayer.inventory.getStackInSlot(8);
+ byte[] mapData;
+ if (stack == null || !(stack.getItem() instanceof ItemMap)) {
+ mapData = lastMapData;
+ } else {
+ MapData mapData1 = ((ItemMap)stack.getItem()).getMapData(stack, world);
+ mapData = mapData1.colors;
+ }
+
+ if (lastMapData == null && mapData != null) buildMap(mapData);
+ processMap(mapData);
+ lastMapData = mapData;
}
}