-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
15 changed files
with
212 additions
and
79 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 |
---|---|---|
|
@@ -21,5 +21,5 @@ jobs: | |
git config --global user.name Docs deploy | ||
git config --global user.email [email protected] | ||
mike set-default latest | ||
mike deploy --push --update-aliases 0.5.x latest | ||
mike deploy --push --update-aliases 0.6.x latest | ||
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
13 changes: 0 additions & 13 deletions
13
...mer-core/src/main/java/eu/pb4/polymer/core/impl/interfaces/ItemStackAwareNbtCompound.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
polymer-core/src/main/java/eu/pb4/polymer/core/impl/interfaces/TypeAwareNbtCompound.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,16 @@ | ||
package eu.pb4.polymer.core.impl.interfaces; | ||
|
||
import net.minecraft.nbt.NbtByte; | ||
import net.minecraft.nbt.NbtElement; | ||
import net.minecraft.nbt.NbtString; | ||
|
||
public interface TypeAwareNbtCompound { | ||
String MARKER_KEY = "$$polymer:type"; | ||
|
||
NbtString STACK_TYPE = NbtString.of( "item_stack"); | ||
NbtString STATE_TYPE = NbtString.of("block_state"); | ||
default void polymerCore$setType(NbtString type) {}; | ||
default NbtString polymerCore$getType() { | ||
return null; | ||
}; | ||
} |
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
6 changes: 2 additions & 4 deletions
6
polymer-core/src/main/java/eu/pb4/polymer/core/mixin/item/NbtCompoundFallbackMixin.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,12 +1,10 @@ | ||
package eu.pb4.polymer.core.mixin.item; | ||
|
||
import eu.pb4.polymer.core.impl.interfaces.ItemStackAwareNbtCompound; | ||
import net.minecraft.item.ItemStack; | ||
import eu.pb4.polymer.core.impl.interfaces.TypeAwareNbtCompound; | ||
import net.minecraft.nbt.NbtCompound; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
|
||
@Mixin(NbtCompound.class) | ||
public class NbtCompoundFallbackMixin implements ItemStackAwareNbtCompound { | ||
public class NbtCompoundFallbackMixin implements TypeAwareNbtCompound { | ||
|
||
} |
Oops, something went wrong.