Clean repo for open source release
Remove build artifacts, dev tool configs, unused dependencies, and third-party source dumps. Add proper README, update .gitignore, clean up Makefile.
This commit is contained in:
38
src/main/java/com/tiedup/remake/items/GenericMittens.java
Normal file
38
src/main/java/com/tiedup/remake/items/GenericMittens.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package com.tiedup.remake.items;
|
||||
|
||||
import com.tiedup.remake.items.base.ItemMittens;
|
||||
import com.tiedup.remake.items.base.MittensVariant;
|
||||
import net.minecraft.world.item.Item;
|
||||
|
||||
/**
|
||||
* Generic mittens item created from MittensVariant enum.
|
||||
*
|
||||
* Factory pattern: All mittens variants are created using this single class.
|
||||
*
|
||||
* Phase 14.4: Mittens system - blocks hand interactions when equipped.
|
||||
*/
|
||||
public class GenericMittens extends ItemMittens {
|
||||
|
||||
private final MittensVariant variant;
|
||||
|
||||
public GenericMittens(MittensVariant variant) {
|
||||
super(new Item.Properties().stacksTo(16));
|
||||
this.variant = variant;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the variant this mittens was created from.
|
||||
*/
|
||||
public MittensVariant getVariant() {
|
||||
return variant;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the texture subfolder for this mittens variant.
|
||||
* Issue #12 fix: Eliminates string checks in renderers.
|
||||
*/
|
||||
@Override
|
||||
public String getTextureSubfolder() {
|
||||
return variant.getTextureSubfolder();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user