|
41 | 41 | import net.minecraft.util.math.Box; |
42 | 42 | import net.minecraft.util.math.MathHelper; |
43 | 43 | import net.minecraft.util.math.Vec3d; |
44 | | -import net.minecraft.util.registry.Registry; |
45 | 44 | import net.minecraft.world.World; |
46 | 45 | import net.minecraft.world.WorldView; |
47 | 46 | import org.jetbrains.annotations.NotNull; |
@@ -149,17 +148,6 @@ public static DefaultAttributeContainer.Builder createTaterzenAttributes() { |
149 | 148 | .add(EntityAttributes.GENERIC_FOLLOW_RANGE, 35.0D); |
150 | 149 | } |
151 | 150 |
|
152 | | - /** |
153 | | - * Sets the *ONLY* command to be executed on right - click |
154 | | - * @param command command to execute |
155 | | - * @deprecated please use {@link TaterzenNPC#addCommand(String)} |
156 | | - */ |
157 | | - @Deprecated |
158 | | - public void setCommand(String command) { |
159 | | - this.clearCommands(); |
160 | | - this.npcData.commands.add(command); |
161 | | - } |
162 | | - |
163 | 151 | /** |
164 | 152 | * Adds command to the list |
165 | 153 | * of commands that will be executed on |
@@ -527,17 +515,6 @@ public void readCustomDataFromTag(CompoundTag tag) { |
527 | 515 | // Skin layers |
528 | 516 | this.fakePlayer.getDataTracker().set(getPLAYER_MODEL_PARTS(), npcTag.getByte("SkinLayers")); |
529 | 517 |
|
530 | | - //todo @Deprecated (migration to disguiselib) |
531 | | - // Compatibility (transition to disguiselib) & presets |
532 | | - if(DISGUISELIB_LOADED && npcTag.contains("entityType")) { |
533 | | - Identifier identifier = new Identifier(npcTag.getString("entityType")); |
534 | | - if(!identifier.getPath().equals("player")) |
535 | | - DisguiseLibCompatibility.disguiseAs(this, Registry.ENTITY_TYPE.get(identifier)); |
536 | | - } |
537 | | - |
538 | | - // todo @deprecated (migration to more commands) |
539 | | - if(npcTag.contains("command")) |
540 | | - this.npcData.commands.add(npcTag.getString("command")); |
541 | 518 |
|
542 | 519 | // Multiple commands |
543 | 520 | ListTag commands = (ListTag) npcTag.get("Commands"); |
|
0 commit comments