Skip to content

Instantly share code, notes, and snippets.

View OhmV-IR's full-sized avatar

Adrien Bourdeaux OhmV-IR

View GitHub Profile
PylonItemSchema itemwithmeta = new SimpleItemSchema<>(
PylonTest.key("simple_item_schema_3"),
() -> {
ItemStack item = new ItemStackBuilder(Material.ACACIA_BUTTON)
.name("A cool item")
.lore("Something cool")
.set(DataComponentTypes.RARITY, ItemRarity.RARE)
.set(DataComponentTypes.ENCHANTMENT_GLINT_OVERRIDE, true)
.build();
Damageable meta = (Damageable) item.getItemMeta();
In file included from C:\Users\bourd\Coding\allwpilib\wpilibNewCommands\src\main\native\include/frc2/command/Subsystem.h:14,
from C:\Users\bourd\Coding\allwpilib\wpilibNewCommands\src\main\native\include/frc2/command/Requirements.h:11,
from C:\Users\bourd\Coding\allwpilib\wpilibNewCommands\src\main\native\include/frc2/command/Command.h:18,
from C:\Users\bourd\Coding\allwpilib\wpilibNewCommands\src\main\native\include/frc2/command/button/Trigger.h:16,
from C:\Users\bourd\Coding\allwpilib\wpilibNewCommands\src\generated\main\native\include/frc2/command/button/CommandPS4Controller.h:10,
from C:\Users\bourd\Coding\allwpilib\wpilibNewCommands\src\generated\main\native\cpp\frc2\command\button\CommandPS4Controller.cpp:7:
C:\Users\bourd\Coding\allwpilib\wpilibNewCommands\src\main\native\include/frc2/command/CommandScheduler.h:201:15: error: 'keys' in namespace 'std::views' does not name a template type
201 | std::views::keys<wpi: