-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove useless anvil renaming mixin for polymer items, fix recipes no…
…t using correct player language
- Loading branch information
Showing
13 changed files
with
120 additions
and
62 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
2 changes: 1 addition & 1 deletion
2
polymer-core/src/main/java/eu/pb4/polymer/core/api/utils/PolymerClientDecoded.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
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
43 changes: 0 additions & 43 deletions
43
polymer-core/src/main/java/eu/pb4/polymer/core/mixin/item/AnvilScreenHandlerMixin.java
This file was deleted.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
polymer-core/src/testmod/resources/data/polymertest/recipes/tater.json
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,19 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"key": { | ||
"#": { | ||
"item": "minecraft:stick" | ||
}, | ||
"X": { | ||
"item": "test:block" | ||
} | ||
}, | ||
"pattern": [ | ||
"XXX", | ||
" # ", | ||
" # " | ||
], | ||
"result": { | ||
"item": "test:potato_block" | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...al-entity/src/main/java/eu/pb4/polymer/virtualentity/api/tracker/WrappingDataTracker.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,50 @@ | ||
package eu.pb4.polymer.virtualentity.api.tracker; | ||
|
||
import net.minecraft.entity.data.DataTracker; | ||
import net.minecraft.entity.data.TrackedData; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.List; | ||
|
||
public class WrappingDataTracker implements DataTrackerLike { | ||
private final DataTrackerLike dataTracker; | ||
|
||
public WrappingDataTracker(DataTrackerLike tracker) { | ||
this.dataTracker = tracker; | ||
} | ||
|
||
@Override | ||
public <T> @Nullable T get(TrackedData<T> data) { | ||
return dataTracker.get(data); | ||
} | ||
|
||
@Override | ||
public <T> void set(TrackedData<T> key, T value, boolean forceDirty) { | ||
dataTracker.set(key, value, forceDirty); | ||
} | ||
|
||
@Override | ||
public <T> void setDirty(TrackedData<T> key, boolean isDirty) { | ||
dataTracker.set(key, dataTracker.get(key), isDirty); | ||
} | ||
|
||
@Override | ||
public boolean isDirty() { | ||
return dataTracker.isDirty(); | ||
} | ||
|
||
@Override | ||
public @Nullable List<DataTracker.SerializedEntry<?>> getDirtyEntries() { | ||
return dataTracker.getDirtyEntries(); | ||
} | ||
|
||
@Override | ||
public @Nullable List<DataTracker.SerializedEntry<?>> getChangedEntries() { | ||
return dataTracker.getChangedEntries(); | ||
} | ||
|
||
@Override | ||
public boolean isEmpty() { | ||
return dataTracker.isEmpty(); | ||
} | ||
} |